1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-28 17:48:39 +00:00

wayland: fix clean_text bug

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 <gewalalb@gmail.com>
This commit is contained in:
Leo Chung 2024-12-31 20:19:07 +08:00 committed by Brenden Matthews
parent caf2a2ed6b
commit 79e68cc730

View File

@ -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);
}