diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 9046ae27..068dbb88 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -789,6 +789,8 @@ void container_set_floating(struct sway_container *container, bool enable) { | |||
789 | container->border = container->saved_border; | 789 | container->border = container->saved_border; |
790 | } | 790 | } |
791 | } | 791 | } |
792 | container->width_fraction = 0; | ||
793 | container->height_fraction = 0; | ||
792 | } | 794 | } |
793 | 795 | ||
794 | container_end_mouse_operation(container); | 796 | container_end_mouse_operation(container); |
@@ -1022,9 +1024,9 @@ void container_fullscreen_disable(struct sway_container *con) { | |||
1022 | if (container_is_floating(con)) { | 1024 | if (container_is_floating(con)) { |
1023 | con->x = con->saved_x; | 1025 | con->x = con->saved_x; |
1024 | con->y = con->saved_y; | 1026 | con->y = con->saved_y; |
1027 | con->width = con->saved_width; | ||
1028 | con->height = con->saved_height; | ||
1025 | } | 1029 | } |
1026 | con->width = con->saved_width; | ||
1027 | con->height = con->saved_height; | ||
1028 | 1030 | ||
1029 | if (con->fullscreen_mode == FULLSCREEN_WORKSPACE) { | 1031 | if (con->fullscreen_mode == FULLSCREEN_WORKSPACE) { |
1030 | if (con->workspace) { | 1032 | if (con->workspace) { |
@@ -1415,6 +1417,8 @@ struct sway_container *container_split(struct sway_container *child, | |||
1415 | struct sway_container *cont = container_create(NULL); | 1417 | struct sway_container *cont = container_create(NULL); |
1416 | cont->width = child->width; | 1418 | cont->width = child->width; |
1417 | cont->height = child->height; | 1419 | cont->height = child->height; |
1420 | cont->width_fraction = child->width_fraction; | ||
1421 | cont->height_fraction = child->height_fraction; | ||
1418 | cont->x = child->x; | 1422 | cont->x = child->x; |
1419 | cont->y = child->y; | 1423 | cont->y = child->y; |
1420 | cont->current_gaps = child->current_gaps; | 1424 | cont->current_gaps = child->current_gaps; |