summaryrefslogtreecommitdiffstats
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorLibravatar russ morris <russ@infocyte.com>2018-07-10 20:34:51 -0700
committerLibravatar russ morris <russ@infocyte.com>2018-07-10 20:34:51 -0700
commitc06266e12d2eb14e54da665b966dd1f7618dd123 (patch)
tree522beea0825ebcf5891e372b28caa2a248201b94 /sway/desktop/render.c
parenttabs instead of spaces (diff)
downloadsway-c06266e12d2eb14e54da665b966dd1f7618dd123.tar.gz
sway-c06266e12d2eb14e54da665b966dd1f7618dd123.tar.zst
sway-c06266e12d2eb14e54da665b966dd1f7618dd123.zip
fix line lengths
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 9ebbe9f3..5aec49b5 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -600,7 +600,8 @@ static void render_container_tabbed(struct sway_output *output,
600 struct sway_container_state *pstate = &con->current; 600 struct sway_container_state *pstate = &con->current;
601 601
602 double width_gap_adjustment = 2 * pstate->current_gaps; 602 double width_gap_adjustment = 2 * pstate->current_gaps;
603 int tab_width = (pstate->swayc_width - width_gap_adjustment) / pstate->children->length; 603 int tab_width =
604 (pstate->swayc_width - width_gap_adjustment) / pstate->children->length;
604 605
605 // Render tabs 606 // Render tabs
606 for (int i = 0; i < pstate->children->length; ++i) { 607 for (int i = 0; i < pstate->children->length; ++i) {
@@ -629,7 +630,8 @@ static void render_container_tabbed(struct sway_output *output,
629 630
630 // Make last tab use the remaining width of the parent 631 // Make last tab use the remaining width of the parent
631 if (i == pstate->children->length - 1) { 632 if (i == pstate->children->length - 1) {
632 tab_width = (pstate->swayc_width - width_gap_adjustment) - tab_width * i; 633 tab_width =
634 (pstate->swayc_width - width_gap_adjustment) - tab_width * i;
633 } 635 }
634 636
635 render_titlebar(output, damage, child, x, cstate->swayc_y, tab_width, 637 render_titlebar(output, damage, child, x, cstate->swayc_y, tab_width,