mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 18:40:40 -05:00
wayland: Reset tablet tool cursor surface on proximity out
The cursor surface would be remembered until the next proximity in event, causing flashing of the old cursor till the client underneath the tablet tool sent the zwp_tablet_tool.set_cursor request. Forgetting about the cursor surface on proximity out makes the cursor invisible till the request is made.
This commit is contained in:
parent
e82d039ec2
commit
25f9cdced3
@ -914,6 +914,7 @@ meta_wayland_tablet_tool_update (MetaWaylandTabletTool *tool,
|
||||
break;
|
||||
case CLUTTER_PROXIMITY_OUT:
|
||||
tool->current_tablet = NULL;
|
||||
meta_wayland_tablet_tool_set_cursor_surface (tool, NULL);
|
||||
meta_wayland_tablet_tool_update_cursor_surface (tool);
|
||||
g_clear_object (&tool->cursor_renderer);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user