mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
wayland: Don't try and reset the pointer window grab if there wasn't one
This commit is contained in:
parent
134ef22a4e
commit
99e0f4b62c
@ -279,9 +279,10 @@ gdk_device_core_ungrab (GdkDevice *device,
|
||||
if (grab)
|
||||
grab->serial_end = grab->serial_start;
|
||||
|
||||
_gdk_wayland_window_set_device_grabbed (wayland_device->pointer_grab_window,
|
||||
NULL,
|
||||
0);
|
||||
if (wayland_device->pointer_grab_window)
|
||||
_gdk_wayland_window_set_device_grabbed (wayland_device->pointer_grab_window,
|
||||
NULL,
|
||||
0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user