diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2018-06-27 17:53:13 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2018-06-30 11:10:47 +0100 |
commit | e0d0e8f840271ab12533cb16c9a7ccba237adcb3 (patch) | |
tree | a81bf679fc25f89cc09516e1920c4496b2e4c2f8 /sway/tree/container.c | |
parent | Merge pull request #2173 from emersion/fix-floating-no-frame-event (diff) | |
download | sway-e0d0e8f840271ab12533cb16c9a7ccba237adcb3.tar.gz sway-e0d0e8f840271ab12533cb16c9a7ccba237adcb3.tar.zst sway-e0d0e8f840271ab12533cb16c9a7ccba237adcb3.zip |
Revert "Don't unmaximize floating views"
This reverts commit 97672295ed50d1d6272876c4a3b6b5607cab05c6.
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index af55a54e..d8d5c34a 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -943,6 +943,9 @@ void container_set_floating(struct sway_container *container, bool enable) { | |||
943 | container_add_child(workspace, container); | 943 | container_add_child(workspace, container); |
944 | container->width = container->parent->width; | 944 | container->width = container->parent->width; |
945 | container->height = container->parent->height; | 945 | container->height = container->parent->height; |
946 | if (container->type == C_VIEW) { | ||
947 | view_set_tiled(container->sway_view, true); | ||
948 | } | ||
946 | container->is_sticky = false; | 949 | container->is_sticky = false; |
947 | container_reap_empty_recursive(workspace->sway_workspace->floating); | 950 | container_reap_empty_recursive(workspace->sway_workspace->floating); |
948 | } | 951 | } |