diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-07-26 15:24:20 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-07-26 15:43:33 +0200 |
commit | 25f9cdced32c716a345e8bf2191dfa2e5b69ae1d (patch) | |
tree | 26b162fc1b6229a0a6e76783c928c05458e36f65 | |
parent | e82d039ec283a238caf08504ab3132d2c2cd2885 (diff) | |
download | mutter-25f9cdced32c716a345e8bf2191dfa2e5b69ae1d.tar.gz |
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.
-rw-r--r-- | src/wayland/meta-wayland-tablet-tool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-tablet-tool.c b/src/wayland/meta-wayland-tablet-tool.c index f20d44859..5e2505b1a 100644 --- a/src/wayland/meta-wayland-tablet-tool.c +++ b/src/wayland/meta-wayland-tablet-tool.c @@ -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; |