swayfx/sway
Ryan Dwyer 3a888163a0 Refactor seat_get_focus functions
Fixes #2467.

This commit introduces seat_get_focus_inactive_floating to supplement
seat_get_focus_inactive_tiling, and uses it during `focus mode_toggle`
which fixes a focus bug.

This also refactors the seat_get_focus_inactive functions so that they
do their selection logic themselves rather than offloading it to
seat_get_focus_by_type which was getting bloated. seat_get_focus_by_type
is now removed.

Lastly, this commit changes seat_get_focus to just return the first
container in the focus stack rather than looping and calling
seat_get_focus_by_type.
2018-08-17 17:32:53 +10:00
..
commands Refactor seat_get_focus functions 2018-08-17 17:32:53 +10:00
config Allow a fallback color to be specified for swaybg 2018-08-08 15:37:06 -04:00
desktop Simplify transactions 2018-08-15 10:03:55 +10:00
input Refactor seat_get_focus functions 2018-08-17 17:32:53 +10:00
tree When the workspace is focused, return it instead of checking parent 2018-08-16 18:52:40 -05:00
base64.c Rework get_clipboard implementation 2017-07-07 21:51:34 +02:00
commands.c Write to swaynag pipe fd directly on config errors 2018-08-03 10:37:35 -04:00
config.c Remove container_for_each_descendant_bfs 2018-08-11 15:57:09 +10:00
criteria.c Remove container_for_each_descendant_bfs 2018-08-11 15:57:09 +10:00
debug-tree.c Add L_FLOATING back to debug tree 2018-06-01 23:14:58 +10:00
decoration.c Handle views created after decoration mode is sent for xdg-shell 2018-08-06 15:20:30 +01:00
ipc-json.c ipc: add window::mark event 2018-08-01 16:57:15 +01:00
ipc-server.c Remove container_for_each_descendant_bfs 2018-08-11 15:57:09 +10:00
main.c Remove obsolete security sanity check 2018-08-09 08:45:32 -04:00
meson.build Listen to server-decoration mode changes 2018-08-06 15:20:30 +01:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Handle views created after decoration mode is sent for xdg-shell 2018-08-06 15:20:30 +01:00
sway-bar.5.scd Add sway-bar(5) 2018-05-11 21:13:43 -04:00
sway-input.5.scd Escaping underscores in tap_button_map 2018-07-29 14:47:53 +02:00
sway.1.scd delete references to swaygrab 2018-07-30 16:24:46 +01:00
sway.5.scd man: Correct format for output position config 2018-08-11 18:41:31 +02:00
swaynag.c Fix compiler errors. 2018-08-05 00:24:44 -07:00