summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-08-20 04:47:36 -0700
committertaiyu <[email protected]>2015-08-20 04:47:36 -0700
commitfbaa9111a8525daeef8a5534784da2f793917a36 (patch)
tree19c6150da805f3c765746740f0eb8f250682292c /sway/commands.c
parentba6034e8c8cd2bbe15f318e511817e0904633bb3 (diff)
setup for resizable windows, drop weight
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c
index c4cf96a2..babefd02 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -242,6 +242,7 @@ static bool cmd_floating(struct sway_config *config, int argc, char **argv) {
add_sibling(focused, view);
}
// Refocus on the view once its been put back into the layout
+ view->width = view->height = 0;
arrange_windows(active_workspace, -1, -1);
}
set_focused_container(view);