aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-11-12 08:02:39 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-11-12 08:02:39 -0500
commit250097d32b7503b5a3fbb14b4582534ae3957035 (patch)
treebf91de67850abdce884a2aa03c6b727031ca73d3
parentFix some IPC issues (diff)
downloadsway-250097d32b7503b5a3fbb14b4582534ae3957035.tar.gz
sway-250097d32b7503b5a3fbb14b4582534ae3957035.tar.zst
sway-250097d32b7503b5a3fbb14b4582534ae3957035.zip
Fix gaps for views being incorrect
-rw-r--r--sway/config.c2
-rw-r--r--sway/layout.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index 20e4919d..0b25ee60 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -105,7 +105,7 @@ static void config_defaults(struct sway_config *config) {
105 config->seamless_mouse = true; 105 config->seamless_mouse = true;
106 config->reading = false; 106 config->reading = false;
107 107
108 config->edge_gaps = false; 108 config->edge_gaps = true;
109 config->gaps_inner = 0; 109 config->gaps_inner = 0;
110 config->gaps_outer = 0; 110 config->gaps_outer = 0;
111} 111}
diff --git a/sway/layout.c b/sway/layout.c
index 3bc297a6..fe7d820a 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -398,6 +398,9 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
398 height = container->height; 398 height = container->height;
399 } 399 }
400 400
401 sway_log(L_DEBUG, "Arranging layout for %p %s %fx%f+%f,%f", container,
402 container->name, container->width, container->height, container->x, container->y);
403
401 int x = 0, y = 0; 404 int x = 0, y = 0;
402 switch (container->type) { 405 switch (container->type) {
403 case C_ROOT: 406 case C_ROOT: