swayfx/sway
Ryan Dwyer c620f76bea Move sticky containers when switching workspace via criteria
* Create a view on workspace 1
* Switch to workspace 2 (on the same output) and create a floating
sticky view
* Use criteria to focus the view on workspace 1

Previously, we only moved the sticky containers when using
workspace_switch, but the above method of focusing doesn't call it. This
patch relocates the sticky-moving code into seat_set_focus_warp.

A side effect of this patch is that if you have a sticky container
focused and then switch workspaces, the sticky container will no longer
be focused. It would previously retain focus.

In seat_set_focus_warp, new_output_last_ws was only set when changing
outputs, but now it's always set. This means new_output_last_ws and
last_workspace might point to the same workspace, which means we have to
make sure we don't destroy it twice. It now checks to make sure they're
different, and to make this more obvious I've moved both calls to
workspace_consider_destroy to be next to each other.
2018-10-06 19:16:41 +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 Move sticky containers when switching workspace via criteria 2018-10-06 19:16:41 +10:00
tree Move sticky containers when switching workspace via criteria 2018-10-06 19:16:41 +10: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