aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/keyboard.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2020-06-13 11:45:50 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-16 17:53:23 +0200
commit33aa59d4c6d4aaf907091f5fcc967b1f9b1a0fd8 (patch)
treea1192e0d47d06c7d118a3da21b9e8024c56f1600 /include/sway/input/keyboard.h
parenti3-compat: add GET_BINDING_STATE IPC command (diff)
downloadsway-33aa59d4c6d4aaf907091f5fcc967b1f9b1a0fd8.tar.gz
sway-33aa59d4c6d4aaf907091f5fcc967b1f9b1a0fd8.tar.zst
sway-33aa59d4c6d4aaf907091f5fcc967b1f9b1a0fd8.zip
input/keyboard: wlr_keyboard_group enter and leave
This adds support for wlr_keyboard_group's enter and leave events. The enter event just updates the keyboard's state. The leave event updates the keyboard's state and if the surface was notified of a press event for any of the keycodes, it is refocused so that it can pick up the current keyboard state without triggering any keybinds.
Diffstat (limited to 'include/sway/input/keyboard.h')
-rw-r--r--include/sway/input/keyboard.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h
index c9d2e5ce..2c61e5a7 100644
--- a/include/sway/input/keyboard.h
+++ b/include/sway/input/keyboard.h
@@ -75,6 +75,8 @@ struct sway_keyboard_group {
75 struct sway_seat_device *seat_device; 75 struct sway_seat_device *seat_device;
76 struct wl_listener keyboard_key; 76 struct wl_listener keyboard_key;
77 struct wl_listener keyboard_modifiers; 77 struct wl_listener keyboard_modifiers;
78 struct wl_listener enter;
79 struct wl_listener leave;
78 struct wl_list link; // sway_seat::keyboard_groups 80 struct wl_list link; // sway_seat::keyboard_groups
79}; 81};
80 82