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 /sway/input | |
parent | 9d99bb956fea8922f8e0196d67eabbd510c53f1f (diff) | |
download | sway-8f7bb145b72209724f05b0182dee33c0e47d2357.tar.xz |
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 'sway/input')
-rw-r--r-- | sway/input/seat.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 987e1c9f..a7408287 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -214,15 +214,6 @@ static void seat_send_focus(struct sway_node *node, struct sway_seat *seat) { } } -void sway_force_focus(struct wlr_surface *surface) { - struct sway_seat *seat; - wl_list_for_each(seat, &server.input->seats, link) { - seat_keyboard_notify_enter(seat, surface); - seat_tablet_pads_notify_enter(seat, surface); - sway_input_method_relay_set_focus(&seat->im_relay, surface); - } -} - void seat_for_each_node(struct sway_seat *seat, void (*f)(struct sway_node *node, void *data), void *data) { struct sway_seat_node *current = NULL; |