sway-patched-tray-menu-github/sway
Mikkel Oscar Lyderik bb32cba795 Make key handling less strict
Sway has been very strict when it comes to key handling. Only on an
exact match would a bindsym be triggered.

This patch makes it less strict by for instance allowing the key combo
`$mod+1+2` to act as `$mod+2` if 2 was the last pressed key and `$mod+1`
if 1 was the last pressed key.

The new key handling uses the following algorithm:

1. List of bindings sorted by number of keys in binding (already the
default)
2. Find all bindings covered by the current keyboard state and list them
by same order as in 1.
3. Select the first binding from the list where the last pressed key is
part of the binding.

Addresses #452
2016-03-19 14:06:46 +01:00
..
CMakeLists.txt Document swaybar commands 2016-03-17 15:41:24 +01:00
commands.c Allow legal non-x11 keycodes 2016-03-19 13:36:37 +01:00
config.c Free config before exiting sway. 2016-02-27 22:13:15 +01:00
container.c Fix assigning workspaces to outputs 2016-03-04 16:44:49 +01:00
criteria.c criteria: Code formatting. 2015-11-25 14:59:07 +01:00
debug_log.c remove unused execinfo.h include from debug_log.c 2015-12-21 18:57:26 +01:00
extensions.c Remove unused panel_size (and fix rearrange) 2016-03-17 23:47:42 +01:00
focus.c Remove focus when switching to empty workspace 2016-03-05 15:39:28 +01:00
handlers.c Make key handling less strict 2016-03-19 14:06:46 +01:00
input.c libinput 2016-01-19 06:51:36 -08:00
input_state.c Set pointer pos before focusing view under it 2016-02-27 13:18:55 +01:00
ipc-server.c Add outputs to bar_config ipc response 2016-02-27 22:12:35 +01:00
layout.c Fix assigning workspaces to outputs 2016-03-04 16:44:49 +01:00
main.c Free config before exiting sway. 2016-02-27 22:13:15 +01:00
output.c output: Support multiple adjacent outputs. 2015-11-16 21:32:18 +01:00
resize.c return after disconnect ipc client and minor checks 2015-09-29 07:19:10 -07:00
sway-bar.5.txt Document swaybar commands 2016-03-17 15:41:24 +01:00
sway-input.5.txt Document swaybar commands 2016-03-17 15:41:24 +01:00
sway.1.txt Clearer order of locations searched for config file. 2016-01-05 22:06:02 +01:00
sway.5.txt Add config option workspace_layout 2016-03-19 00:54:33 +01:00
workspace.c Fix assigning workspaces to outputs 2016-03-04 16:44:49 +01:00