aboutsummaryrefslogtreecommitdiff
path: root/src/gaps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gaps.c')
-rw-r--r--src/gaps.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gaps.c b/src/gaps.c
index 545c8b65..a67e8ceb 100644
--- a/src/gaps.c
+++ b/src/gaps.c
@@ -52,6 +52,11 @@ bool gaps_should_inset_con(Con *con, int children) {
return false;
}
+ /* Floating split containers should never have gaps inside them. */
+ if (con_inside_floating(con)) {
+ return false;
+ }
+
const bool leaf_or_stacked_tabbed =
con_is_leaf(con) ||
(con->layout == L_STACKED || con->layout == L_TABBED);