Merge branch 'wip/carlosg/cursor-fallout' into 'master'

gdk: Fix toplevel calculation on pointer grab switch

Closes #2970

See merge request GNOME/gtk!2330
This commit is contained in:
Matthias Clasen 2020-07-31 17:10:05 +00:00
commit 0d3fa01be2

View File

@ -639,8 +639,7 @@ switch_to_pointer_grab (GdkDisplay *display,
if (grab == NULL /* ungrab */ ||
(!last_grab->owner_events && grab->owner_events) /* switched to owner_events */ )
{
if (grab)
new_toplevel = get_current_toplevel (display, device, &x, &y, &state);
new_toplevel = get_current_toplevel (display, device, &x, &y, &state);
if (new_toplevel)
{