summaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 27760f35..3d746ebe 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -538,7 +538,7 @@ void update_geometry(swayc_t *container) {
538 int gap = 0; 538 int gap = 0;
539 539
540 // apply inner gaps to non-tabbed/stacked containers 540 // apply inner gaps to non-tabbed/stacked containers
541 swayc_t *p = swayc_tabbed_stacked_parent(container); 541 swayc_t *p = swayc_tabbed_stacked_ancestor(container);
542 if (p == NULL) { 542 if (p == NULL) {
543 gap = update_gap_geometry(container, &geometry); 543 gap = update_gap_geometry(container, &geometry);
544 } 544 }
@@ -803,7 +803,7 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
803 y = container->border_geometry.origin.y; 803 y = container->border_geometry.origin.y;
804 } 804 }
805 805
806 // update container size if it's a child in a tabbed/stacked layout 806 // update container size if it's a direct child in a tabbed/stacked layout
807 if (swayc_tabbed_stacked_parent(container) != NULL) { 807 if (swayc_tabbed_stacked_parent(container) != NULL) {
808 // Use parent actual_geometry as a base for calculating 808 // Use parent actual_geometry as a base for calculating
809 // container geometry 809 // container geometry