From 8f7bb145b72209724f05b0182dee33c0e47d2357 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 29 Apr 2022 23:40:16 -0400 Subject: 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. --- include/sway/input/seat.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/sway/input') diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index c2041742..e3a46872 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -201,10 +201,6 @@ struct sway_workspace *seat_get_last_known_workspace(struct sway_seat *seat); struct sway_container *seat_get_focused_container(struct sway_seat *seat); -// Force focus to a particular surface that is not part of the workspace -// hierarchy (used for lockscreen) -void sway_force_focus(struct wlr_surface *surface); - /** * Return the last container to be focused for the seat (or the most recently * opened if no container has received focused) that is a child of the given -- cgit v1.2.3