diff options
author | Daniel De Graaf <code@danieldg.net> | 2022-04-29 23:40:16 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-10-28 19:41:24 +0200 |
commit | 8f7bb145b72209724f05b0182dee33c0e47d2357 (patch) | |
tree | f2eee1187e0bdfc562130294de8dde1021e84642 /include/sway/server.h | |
parent | Fix keymap being NULL and segfaulting on dev add (diff) | |
download | sway-8f7bb145b72209724f05b0182dee33c0e47d2357.tar.gz sway-8f7bb145b72209724f05b0182dee33c0e47d2357.tar.zst sway-8f7bb145b72209724f05b0182dee33c0e47d2357.zip |
Rework session lock keyboard focus handling
When removing outputs, it is possible to end up in a situation where
none of the session lock client's surfaces have keyboard focus,
resulting in it not receiving keyboard events. Track the focused
surface and update it as needed on surface destroy.
Diffstat (limited to 'include/sway/server.h')
-rw-r--r-- | include/sway/server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h index 055c067d..6a5a60c8 100644 --- a/include/sway/server.h +++ b/include/sway/server.h | |||
@@ -96,6 +96,7 @@ struct sway_server { | |||
96 | struct wlr_session_lock_manager_v1 *manager; | 96 | struct wlr_session_lock_manager_v1 *manager; |
97 | 97 | ||
98 | struct wlr_session_lock_v1 *lock; | 98 | struct wlr_session_lock_v1 *lock; |
99 | struct wlr_surface *focused; | ||
99 | struct wl_listener lock_new_surface; | 100 | struct wl_listener lock_new_surface; |
100 | struct wl_listener lock_unlock; | 101 | struct wl_listener lock_unlock; |
101 | struct wl_listener lock_destroy; | 102 | struct wl_listener lock_destroy; |