diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-21 10:27:31 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-28 14:14:53 +0000 |
| commit | db746d72edb2fdacf3cc9dbdf1acfc6b70ec3b08 (patch) | |
| tree | 77d27abd193a5c3a2a93a92f26d39e81e420c1cd /wayland.h | |
| parent | input: kitty: use base symbol instead of lowering the symbol (diff) | |
input: get_current_modifiers() no longer strips insignificant mods
Our internal binding handling cares about a different set of
modifiers, compared to the kitty keyboard protocol.
To handle this, get_current_modifiers() has been modified, to no
longer strip the “unsignificant” modifiers. This is now up to the
caller to do.
To help, we keep two masks (for significant modifiers) in the seat
struct; one for our internal binding handling (and the legacy keyboard
protocol), and one for the kitty keyboard protocol. These two masks
are updated when the seat’s keymap is updated/changed.
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -198,6 +198,9 @@ struct seat { xkb_mod_index_t mod_caps; xkb_mod_index_t mod_num; + xkb_mod_mask_t bind_significant; + xkb_mod_mask_t kitty_significant; + xkb_keycode_t key_arrow_up; xkb_keycode_t key_arrow_down; |
