diff options
author | Ryan Dwyer <[email protected]> | 2018-07-04 20:10:47 +1000 |
---|---|---|
committer | Ryan Dwyer <[email protected]> | 2018-07-04 20:10:47 +1000 |
commit | f156a25e64736909fd0f33942a0a4dba202c431c (patch) | |
tree | a7821c3dc0f035a85f9d7d21795ea9bc6ce99b28 /sway/tree/container.c | |
parent | 4afa18a0c03b37d92557ce9a1b6822d2acac13f7 (diff) |
Only call view_set_tiled when switching floating mode
Otherwise it repeatedly sets the view's border to the config's default.
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 6f6137c4..d19c857c 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -935,6 +935,7 @@ void container_set_floating(struct sway_container *container, bool enable) { container_add_child(workspace->sway_workspace->floating, container); if (container->type == C_VIEW) { view_init_floating(container->sway_view); + view_set_tiled(container->sway_view, true); } seat_set_focus(seat, seat_get_focus_inactive(seat, container)); container_reap_empty_recursive(workspace); |