mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 22:30:22 +00:00
Fix x/y coordinates for extended events.
Extended events were being reported to virtual windows without taking into account the position of the virtual window inside the native one. https://bugzilla.gnome.org/show_bug.cgi?id=588649
This commit is contained in:
parent
cb5e659ae4
commit
13c258f891
@ -456,8 +456,8 @@ gdk_input_translate_coordinates (GdkDevicePrivate *gdkdev,
|
|||||||
x_scale = gdk_screen_get_width (gdk_drawable_get_screen (window)) / device_width;
|
x_scale = gdk_screen_get_width (gdk_drawable_get_screen (window)) / device_width;
|
||||||
y_scale = gdk_screen_get_height (gdk_drawable_get_screen (window)) / device_height;
|
y_scale = gdk_screen_get_height (gdk_drawable_get_screen (window)) / device_height;
|
||||||
|
|
||||||
x_offset = - impl_window->input_window->root_x;
|
x_offset = - impl_window->input_window->root_x - priv->abs_x;
|
||||||
y_offset = - impl_window->input_window->root_y;
|
y_offset = - impl_window->input_window->root_y - priv->abs_y;
|
||||||
}
|
}
|
||||||
else /* GDK_MODE_WINDOW */
|
else /* GDK_MODE_WINDOW */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user