Skip to content

Commit

Permalink
wayland: fix clean_text bug
Browse files Browse the repository at this point in the history
The current wayland display's clean_text function is missing
cairo_fill to actually clear the background, causing the text to overlap.

Signed-off-by: Leo Chung <[email protected]>
  • Loading branch information
bl4kraven authored and brndnmtthws committed Jan 1, 2025
1 parent caf2a2e commit 79e68cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display-wayland.cc
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ void display_output_wayland::clear_text(int exposures) {
cairo_set_operator(window->cr, CAIRO_OPERATOR_CLEAR);
cairo_rectangle(window->cr, 0, 0, window->rectangle.width(),
window->rectangle.height());
cairo_fill(window->cr);
cairo_restore(window->cr);
}

Expand Down

0 comments on commit 79e68cc

Please sign in to comment.