aboutsummaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authortaiyu <taiyu.len@gmail.com>2015-08-28 11:11:26 -0700
committertaiyu <taiyu.len@gmail.com>2015-08-28 11:11:26 -0700
commitc9de300888b9aac16f909790b203c2b45a751baf (patch)
treebf2ada8452fec44e4a81d3d7791e415d08108986 /sway/layout.c
parent076cf78d7cde486eaca9a2c05a6a4438ff07014e (diff)
layout fix for a certain case
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 74efc56c..1f423099 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -259,6 +259,8 @@ void move_container(swayc_t *container, enum movement_direction dir) {
return;
}
}
+ // Dirty hack to fix a certain case
+ arrange_windows(parent, -1, -1);
arrange_windows(parent->parent, -1, -1);
update_visibility(parent->parent);
set_focused_container_for(parent->parent, container);