diff options
author | emersion <contact@emersion.fr> | 2018-11-28 21:05:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-28 21:05:59 +0100 |
commit | 9d18d81d484c0e6c5ee3638bc69f1dae53299ba4 (patch) | |
tree | a1dfd5de6c8337e5a7fd570b587ae18009873eea | |
parent | 659ab79b6612197caf6c0ec590fe772719c78da3 (diff) | |
parent | 14cb39c77244aa54f1f2aa8c828b656eaf333fda (diff) |
Merge pull request #3216 from RedSoxFan/fix-empty-titlebars
Fix titlebar when no title or marks
-rw-r--r-- | sway/desktop/render.c | 7 |
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, // Determine the left + right extends of the textures (output-buffer local) int ob_left_x, ob_left_width, ob_right_x, ob_right_width; - if (ob_title_x < ob_marks_x) { + if (ob_title_width == 0 && ob_marks_width == 0) { + ob_left_x = ob_inner_x; + ob_left_width = 0; + ob_right_x = ob_inner_x; + ob_right_width = 0; + } else if (ob_title_x < ob_marks_x) { ob_left_x = ob_title_x; ob_left_width = ob_title_width; ob_right_x = ob_marks_x; |