From aed9f7eb9d326b4c5fb0d76a44e87c05b15c1984 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 25 Aug 2023 20:07:36 +0200 Subject: [PATCH] backends: Make base MetaCursorRenderer implementation want an overlay This used to be the behavior, until commit 5d35138df02 changed the meaning of the return value of MetaCursorRendererClass::update_cursor(). This made the user of pure-overlay cursors (singular, MetaWaylandTabletTool) miss their overlays. Change the return value, so that it matches the desired behavior of a backend-less overlay-only cursor renderer. Fixes: 5d35138df02 ("cursor-renderer: Make 'handled_by_backend' state 'needs_overlay'") Part-of: --- src/backends/meta-cursor-renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c index cd8e4d8f0..a9d8c42e2 100644 --- a/src/backends/meta-cursor-renderer.c +++ b/src/backends/meta-cursor-renderer.c @@ -196,7 +196,7 @@ meta_cursor_renderer_real_update_cursor (MetaCursorRenderer *renderer, if (cursor_sprite) meta_cursor_sprite_realize_texture (cursor_sprite); - return FALSE; + return TRUE; } static void