swayfx/sway
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
..
commands Add configuration for raising containers on focus 2018-10-03 16:23:12 +02:00
config Merge pull request #2725 from PumbaPe/add-tap-and-drag 2018-09-30 13:44:11 +02:00
desktop Give focus to another swaylock surface when output is disconnected 2018-10-04 19:36:19 +10:00
input Give focus to another swaylock surface when output is disconnected 2018-10-04 19:36:19 +10:00
tree Merge pull request #2759 from minus7/fix-view-container-null 2018-10-03 21:22:25 +02:00
base64.c Rework get_clipboard implementation 2017-07-07 21:51:34 +02:00
commands.c Add configuration for raising containers on focus 2018-10-03 16:23:12 +02:00
config.c Add configuration for raising containers on focus 2018-10-03 16:23:12 +02:00
criteria.c Fix tiling criteria 2018-10-03 20:33:32 +10:00
debug-tree.c Turn funcs() into funcs(void) 2018-09-30 14:09:05 +03:00
decoration.c Rename view_set_csd_from_client to view_update_csd_from_client 2018-09-27 22:51:37 +10:00
ipc-json.c Merge pull request #2703 from RyanDwyer/csd-border 2018-10-03 13:03:06 +02:00
ipc-server.c Make sway/ipc-server.c POSIX 2001 compliant 2018-09-26 20:10:53 +02:00
main.c Add support for installing binaries with DT_RPATH 2018-09-30 15:37:01 +03:00
meson.build Add configuration for raising containers on focus 2018-10-03 16:23:12 +02:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Add CSD to border modes 2018-09-27 22:51:37 +10:00
sway-bar.5.scd sway{,bar,input}.5: changes for generic blocks 2018-09-28 13:30:54 -04:00
sway-input.5.scd Fix some missing commands in sway-input(5) 2018-10-03 07:50:37 -04:00
sway.1.scd delete references to swaygrab 2018-07-30 16:24:46 +01:00
sway.5.scd Add manpage documentatioon for raise_floating 2018-10-03 16:23:14 +02:00
swaynag.c Fix compiler errors. 2018-08-05 00:24:44 -07:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00