aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-05 17:09:00 +0100
committeremersion <contact@emersion.fr>2017-11-08 10:57:46 +0100
commit84d5e6bbb445c601d85653264f91d4faf333145d (patch)
tree12ce771bd961b544d3856bfa3ebc1fe3902d5ec6 /include
parentf678775953052be0afbb4667544ee00b4cb53c30 (diff)
Send current keyboard state when entering a surface
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_keyboard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h
index af837ff5..e2d50b03 100644
--- a/include/wlr/types/wlr_keyboard.h
+++ b/include/wlr/types/wlr_keyboard.h
@@ -28,6 +28,8 @@ enum wlr_keyboard_modifier {
WLR_MODIFIER_MOD5 = 128,
};
+#define WLR_KEYBOARD_KEYS_CAP 32
+
struct wlr_keyboard_impl;
struct wlr_keyboard {
@@ -41,6 +43,7 @@ struct wlr_keyboard {
xkb_led_index_t led_indexes[WLR_LED_COUNT];
xkb_mod_index_t mod_indexes[WLR_MODIFIER_COUNT];
+ uint32_t keycodes[WLR_KEYBOARD_KEYS_CAP];
struct {
xkb_mod_mask_t depressed;
xkb_mod_mask_t latched;