sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 3c77f066a532efd3df0f2072d02fa4353b4a4511
parent 66b93c1c18df3e052bdc52c1b73cf174b5a56935
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 24 May 2018 09:17:40 -0400

Merge pull request #2028 from RyanDwyer/fix-move-workspace

Fix crash in move workspace to output command
Diffstat:
Msway/tree/layout.c | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/sway/tree/layout.c b/sway/tree/layout.c @@ -187,9 +187,17 @@ void container_move_to(struct sway_container *container, container_notify_child_title_changed(old_parent); container_notify_child_title_changed(new_parent); if (old_parent) { - arrange_children_of(old_parent); + if (old_parent->type == C_OUTPUT) { + arrange_output(old_parent); + } else { + arrange_children_of(old_parent); + } + } + if (new_parent->type == C_OUTPUT) { + arrange_output(new_parent); + } else { + arrange_children_of(new_parent); } - arrange_children_of(new_parent); // If view was moved to a fullscreen workspace, refocus the fullscreen view struct sway_container *new_workspace = container; if (new_workspace->type != C_WORKSPACE) {