swayfx/sway/input
Ryan Dwyer 32cb631143 Give focus to another swaylock surface when output is disconnected
* Have multiple outputs
* Launch swaylock
* Unplug an output (possibly has to be the last "connected" one)
* The swaylock surface on the remaining output would not respond to key
events

This was happening because when the output destroys, focus was not given
to the other swaylock surface.

This patch makes focus be transferred to another surface owned by the
same Wayland client, but only if input was inhibited by the surface
being destroyed, and only if it's in the overlay layer. I figure it's
best to be overly specific and relax the requirements later if needed.

This patch removes a check in seat_set_focus_surface which was
preventing focus from being passed from a layer surface to any other
surface. I don't know of a use case for this check, but it's possible
that this change could produce issues.
2018-10-04 19:36:19 +10:00
..
cursor.c Fix focusing topmost floating windows 2018-10-03 16:23:14 +02:00
input-manager.c add tap-and-drag setting to sway-input 2018-09-29 11:49:41 +02:00
keyboard.c Fix management of bindings during reload 2018-09-06 08:33:00 +10:00
seat.c Give focus to another swaylock surface when output is disconnected 2018-10-04 19:36:19 +10:00