mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Merge branch 'destroy-pointer-gestures' into 'master'
gdk/wayland: Clean up gestures if pointer capability is withdrawn See merge request GNOME/gtk!3697
This commit is contained in:
commit
a5555943ed
@ -3093,6 +3093,11 @@ seat_handle_capabilities (void *data,
|
||||
}
|
||||
else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && seat->wl_pointer)
|
||||
{
|
||||
g_clear_pointer (&seat->wp_pointer_gesture_swipe,
|
||||
zwp_pointer_gesture_swipe_v1_destroy);
|
||||
g_clear_pointer (&seat->wp_pointer_gesture_pinch,
|
||||
zwp_pointer_gesture_pinch_v1_destroy);
|
||||
|
||||
wl_pointer_release (seat->wl_pointer);
|
||||
seat->wl_pointer = NULL;
|
||||
gdk_seat_device_removed (GDK_SEAT (seat), seat->pointer);
|
||||
|
Loading…
Reference in New Issue
Block a user