wayland: Don't try and reset the pointer window grab if there wasn't one

This commit is contained in:
Rob Bradford 2012-03-05 19:35:38 +00:00
parent 134ef22a4e
commit 99e0f4b62c

View File

@ -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);
}
}