macos: track grab serial like other backends

This is what is done elsewhere, so copy that here too now that we actually
generate serials for events.
This commit is contained in:
Christian Hergert 2020-12-02 11:34:31 -08:00
parent f11c23f407
commit 26b9254ac7

View File

@ -122,7 +122,7 @@ gdk_macos_device_ungrab (GdkDevice *device,
grab = _gdk_display_get_last_device_grab (display, device);
if (grab != NULL)
grab->serial_end = 0;
grab->serial_end = grab->serial_start;
_gdk_display_device_grab_update (display, device, 0);
}