Merge branch 'wip/chergert/fix-macos-pointer-position-over-surface' into 'master'

macos: fix calculation of mouse position

See merge request GNOME/gtk!2781
This commit is contained in:
Matthias Clasen 2020-11-05 02:19:18 +00:00
commit 024e048c26

View File

@ -256,7 +256,7 @@ gdk_macos_surface_get_device_state (GdkSurface *surface,
| _gdk_macos_display_get_current_mouse_modifiers (GDK_MACOS_DISPLAY (display));
*x = point.x;
*y = point.y - surface->height;
*y = surface->height - point.y;
return *x >= 0 && *y >= 0 && *x < surface->width && *y < surface->height;
}