diff options
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 601d0e91..85fe7643 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -218,7 +218,8 @@ struct sway_container *container_split(struct sway_container *child, | |||
218 | 218 | ||
219 | wlr_log(WLR_DEBUG, "creating container %p around %p", cont, child); | 219 | wlr_log(WLR_DEBUG, "creating container %p around %p", cont, child); |
220 | 220 | ||
221 | remove_gaps(child); | 221 | child->type == C_WORKSPACE ? workspace_remove_gaps(child) |
222 | : container_remove_gaps(child); | ||
222 | 223 | ||
223 | cont->prev_split_layout = L_NONE; | 224 | cont->prev_split_layout = L_NONE; |
224 | cont->width = child->width; | 225 | cont->width = child->width; |
@@ -229,7 +230,7 @@ struct sway_container *container_split(struct sway_container *child, | |||
229 | struct sway_seat *seat = input_manager_get_default_seat(input_manager); | 230 | struct sway_seat *seat = input_manager_get_default_seat(input_manager); |
230 | bool set_focus = (seat_get_focus(seat) == child); | 231 | bool set_focus = (seat_get_focus(seat) == child); |
231 | 232 | ||
232 | add_gaps(cont); | 233 | container_add_gaps(cont); |
233 | 234 | ||
234 | if (child->type == C_WORKSPACE) { | 235 | if (child->type == C_WORKSPACE) { |
235 | struct sway_container *workspace = child; | 236 | struct sway_container *workspace = child; |