aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-11-28 14:18:30 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-11-28 14:20:58 -0500
commit14cb39c77244aa54f1f2aa8c828b656eaf333fda (patch)
treecbc92d1a5798bd155b0b5b22134b075fe1a712f6 /sway/desktop/render.c
parentMerge pull request #3213 from RedSoxFan/fix-3203 (diff)
downloadsway-14cb39c77244aa54f1f2aa8c828b656eaf333fda.tar.gz
sway-14cb39c77244aa54f1f2aa8c828b656eaf333fda.tar.zst
sway-14cb39c77244aa54f1f2aa8c828b656eaf333fda.zip
Fix titlebar when no title or marks
This fixes the rendering of the titlebar when there is no title or marks.
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index eeda496c..ca8ef83b 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -555,7 +555,12 @@ static void render_titlebar(struct sway_output *output,
555 555
556 // Determine the left + right extends of the textures (output-buffer local) 556 // Determine the left + right extends of the textures (output-buffer local)
557 int ob_left_x, ob_left_width, ob_right_x, ob_right_width; 557 int ob_left_x, ob_left_width, ob_right_x, ob_right_width;
558 if (ob_title_x < ob_marks_x) { 558 if (ob_title_width == 0 && ob_marks_width == 0) {
559 ob_left_x = ob_inner_x;
560 ob_left_width = 0;
561 ob_right_x = ob_inner_x;
562 ob_right_width = 0;
563 } else if (ob_title_x < ob_marks_x) {
559 ob_left_x = ob_title_x; 564 ob_left_x = ob_title_x;
560 ob_left_width = ob_title_width; 565 ob_left_width = ob_title_width;
561 ob_right_x = ob_marks_x; 566 ob_right_x = ob_marks_x;