Skip to content

Commit

Permalink
Merge pull request #3216 from RedSoxFan/fix-empty-titlebars
Browse files Browse the repository at this point in the history
Fix titlebar when no title or marks
  • Loading branch information
emersion authored Nov 28, 2018
2 parents 659ab79 + 14cb39c commit 9d18d81
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sway/desktop/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d18d81

Please sign in to comment.