aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-11-12 08:02:39 -0500
committerDrew DeVault <sir@cmpwn.com>2015-11-12 08:02:39 -0500
commit250097d32b7503b5a3fbb14b4582534ae3957035 (patch)
treebf91de67850abdce884a2aa03c6b727031ca73d3
parent4397cff7bcef77e7bd1b1ac9b27aef74e44fa50d (diff)
downloadsway-250097d32b7503b5a3fbb14b4582534ae3957035.tar.xz
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) {
config->seamless_mouse = true;
config->reading = false;
- config->edge_gaps = false;
+ config->edge_gaps = true;
config->gaps_inner = 0;
config->gaps_outer = 0;
}
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) {
height = container->height;
}
+ sway_log(L_DEBUG, "Arranging layout for %p %s %fx%f+%f,%f", container,
+ container->name, container->width, container->height, container->x, container->y);
+
int x = 0, y = 0;
switch (container->type) {
case C_ROOT: