aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-28 23:53:51 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-28 23:53:51 +1000
commit126a82f14ff47925c7f88523ed9abe0ae9aeb7e8 (patch)
tree7cdac6c37f6ad87c056690bdeac3d5ea0489668d /sway/desktop
parentf5b9815128b6c000bb5d47c339480fa481a5e99d (diff)
downloadsway-126a82f14ff47925c7f88523ed9abe0ae9aeb7e8.tar.xz
Fix gaps issues
* In layout command, arrange parent of parent - not sure why this is needed but it is * Remove gap adjustment when rendering * Workspace should use outer gaps, not inner * Add exceptions for tabbed and stacked containers * Don't mess with gap state when splitting a container
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/render.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index b52dd196..5556e5b3 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -619,9 +619,7 @@ static void render_container_tabbed(struct sway_output *output,
struct sway_container *current = pstate->focused_inactive_child;
struct border_colors *current_colors = &config->border_colors.unfocused;
- double width_gap_adjustment = 2 * pstate->current_gaps;
- int tab_width =
- (pstate->swayc_width - width_gap_adjustment) / pstate->children->length;
+ int tab_width = (pstate->swayc_width) / pstate->children->length;
// Render tabs
for (int i = 0; i < pstate->children->length; ++i) {
@@ -656,8 +654,7 @@ static void render_container_tabbed(struct sway_output *output,
// Make last tab use the remaining width of the parent
if (i == pstate->children->length - 1) {
- tab_width =
- pstate->swayc_width - width_gap_adjustment - tab_width * i;
+ tab_width = pstate->swayc_width - tab_width * i;
}
render_titlebar(output, damage, child, x, pstate->swayc_y, tab_width,