From 04870fc1a156e225462cd255981c991e5b6058a4 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 8 Jan 2024 14:30:34 +1000 Subject: [PATCH] gdk/wayland: Reset cursor_is_default on proximity out For tablet tools if we have NULL cursor, we use the default cursor instead. This provides us with a tablet cursor when an application never sets the cursor. However, on proximity out when we clear said cursor we also need to toggle off cursor_is_default, otherwise on the next proximity in we assume we already have a cursor and never update it again. This leads to an invisible cursor over GTK application when the tablet tool is brought into proximity over the widget (but not when moving into the widget from the outside). Closes: #6312 --- gdk/wayland/gdkseat-wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/wayland/gdkseat-wayland.c b/gdk/wayland/gdkseat-wayland.c index 993fb74233..637f519f8a 100644 --- a/gdk/wayland/gdkseat-wayland.c +++ b/gdk/wayland/gdkseat-wayland.c @@ -2859,6 +2859,7 @@ tablet_tool_handle_proximity_out (void *data, gdk_device_update_tool (tablet->stylus_device, NULL); g_clear_object (&tablet->pointer_info.cursor); + tablet->pointer_info.cursor_is_default = FALSE; } static double *