diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-12-18 23:52:19 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-12-18 23:53:42 +0100 |
commit | f0b3ee6d84ebbf6a7c47cb3c0437c4dc3c87e67b (patch) | |
tree | 32058f1b743f8e60fb38166108f15660b428a565 | |
parent | 0ad5059b6f5f7d1b7cf6df70e3e3bb8dce8ff797 (diff) |
layout: arrange_windows: Partially fix swaybar irregularties.
-rw-r--r-- | sway/layout.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/layout.c b/sway/layout.c index 975cb5cb..5b7dc486 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -450,7 +450,7 @@ static void arrange_windows_r(swayc_t *container, double width, double height) { case C_WORKSPACE: { swayc_t *output = swayc_parent_by_type(container, C_OUTPUT); - int width = output->width, height = output->height; + width = output->width, height = output->height; for (i = 0; i < desktop_shell.panels->length; ++i) { struct panel_config *config = desktop_shell.panels->items[i]; if (config->output == output->handle) { @@ -473,10 +473,10 @@ static void arrange_windows_r(swayc_t *container, double width, double height) { } } int gap = swayc_gap(container); - container->x = gap; - container->y = gap; - container->width = width - gap * 2; - container->height = height - gap * 2; + container->x = x + gap; + container->y = y + gap; + width = container->width = width - gap * 2; + height = container->height = height - gap * 2; sway_log(L_DEBUG, "Arranging workspace '%s' at %f, %f", container->name, container->x, container->y); } // children are properly handled below |