mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
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
This commit is contained in:
parent
43e5bc795a
commit
04870fc1a1
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user