From 79e68cc730a392f61548ad2c0dd5274ea2916a31 Mon Sep 17 00:00:00 2001 From: Leo Chung Date: Tue, 31 Dec 2024 20:19:07 +0800 Subject: [PATCH] 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 --- src/display-wayland.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display-wayland.cc b/src/display-wayland.cc index 089974520..f7c7a5009 100644 --- a/src/display-wayland.cc +++ b/src/display-wayland.cc @@ -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); }