output: evacuate sticky containers only if new output has a workspace

Sticky floating containers on an otherwise empty workspace can only be
evacuated if the new output has an active workspace. The noop output may
not have one and in that case we have to move the whole workspace to the
new output.
This commit is contained in:
mwenzkowski 2020-10-28 00:02:08 +01:00 committed by Tudor Brindus
parent 0cb9282aee
commit 32788a93f2
3 changed files with 41 additions and 23 deletions

View file

@ -132,4 +132,6 @@ void workspace_get_box(struct sway_workspace *workspace, struct wlr_box *box);
size_t workspace_num_tiling_views(struct sway_workspace *ws);
size_t workspace_num_sticky_containers(struct sway_workspace *ws);
#endif