mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 21:14:10 +01:00
Fix titlebar when no title or marks
This fixes the rendering of the titlebar when there is no title or marks.
This commit is contained in:
parent
9924d72ab2
commit
14cb39c772
@ -555,7 +555,12 @@ static void render_titlebar(struct sway_output *output,
|
|||||||
|
|
||||||
// Determine the left + right extends of the textures (output-buffer local)
|
// Determine the left + right extends of the textures (output-buffer local)
|
||||||
int ob_left_x, ob_left_width, ob_right_x, ob_right_width;
|
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_x = ob_title_x;
|
||||||
ob_left_width = ob_title_width;
|
ob_left_width = ob_title_width;
|
||||||
ob_right_x = ob_marks_x;
|
ob_right_x = ob_marks_x;
|
||||||
|
Loading…
Reference in New Issue
Block a user