aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-15 16:44:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-15 16:44:54 +0000
commitcb41db85965698dcf34217f8d26d9163a72a2e70 (patch)
tree24324dacc4577ffb2f60abc12c871417729eb0c8 /wayland.h
parentinput: don’t do alternate mode scrolling if application is grabbing mouse (diff)
input: don’t use stale keycodes for arrow-up/down
The keycodes will change if the seat’s keymap changes. Make sure we only do alternate scrolling if the seat has a keyboard, and use the *current* layout’s keycodes for arrow up/down (instead of the *first* layout’s).
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index 430d6b66..7d512ba0 100644
--- a/wayland.h
+++ b/wayland.h
@@ -149,6 +149,9 @@ struct seat {
xkb_mod_index_t mod_ctrl;
xkb_mod_index_t mod_meta;
+ xkb_keycode_t key_arrow_up;
+ xkb_keycode_t key_arrow_down;
+
/* Enabled modifiers */
bool shift;
bool alt;