diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-09-08 17:08:26 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-09-08 17:08:26 +0000 |
| commit | eb45cb7b6072ffdc6391a8c8fc09cdeffdc9f429 (patch) | |
| tree | eed63402241ba4076be31994f1fe5c0379b8a985 /wayland.h | |
| parent | Merge branch 'tweak-damage-everything' into master (diff) | |
wayland: set BIND_ACTION_KEY_COUNT correctly
This fixes an issue where ‘pipe-selected’ were not recognized as a
valid key action.
Closes #125
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -43,8 +43,6 @@ enum bind_action_normal { BIND_ACTION_PIPE_VIEW, BIND_ACTION_PIPE_SELECTED, - BIND_ACTION_KEY_COUNT = BIND_ACTION_PIPE_SELECTED, - /* Mouse specific actions - i.e. they require a mouse coordinate */ BIND_ACTION_SELECT_BEGIN, BIND_ACTION_SELECT_BEGIN_BLOCK, @@ -53,7 +51,8 @@ enum bind_action_normal { BIND_ACTION_SELECT_WORD_WS, BIND_ACTION_SELECT_ROW, - BIND_ACTION_COUNT, + BIND_ACTION_KEY_COUNT = BIND_ACTION_PIPE_SELECTED + 1, + BIND_ACTION_COUNT = BIND_ACTION_SELECT_ROW + 1, }; struct key_binding_normal { |
