aboutsummaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-09-23 10:39:24 +1000
committerFurkan Sahin <furkan-dev@proton.me>2018-09-23 10:39:24 +1000
commitefae7f04b54a3f49f1bf886033fe52b1c91faca0 (patch)
treee574ca18b226531da7fc67dbcc4720cbfa2eedbb /CONTRIBUTING.md
parent02fd53c18493b6addc06c257fb6019df1c9f31c3 (diff)
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.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions