sway-patched-tray-menu-github/sway/tree
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
..
arrange.c Prevent sticky containers from jumping on workspace switch 2018-09-23 11:36:16 +10:00
container.c Reenable popup-handling for determining focus 2018-10-03 16:23:14 +02:00
node.c ipc: handle NULL cases for node_get_output 2018-09-15 09:42:49 +01:00
output.c Move sticky containers in output_evacuate 2018-09-28 23:47:22 -04:00
root.c Fix hotplugging down to zero outputs 2018-09-30 11:58:56 +10:00
view.c Fix crash if view has no container 2018-10-03 21:01:34 +02:00
workspace.c Move sticky containers when switching workspace via criteria 2018-10-06 19:16:41 +10:00