diff options
author | Carlos Garnacho <carlos@gnome.org> | 2009-09-21 02:08:41 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-09-21 20:04:21 +0200 |
commit | 13c258f891f00e12321b56de66a9e7cc02b76f72 (patch) | |
tree | 032a1c1b36a6eba886380fdbb9f98bca4c29b152 /gdk | |
parent | cb5e659ae48fe3bcdcb6c1d189423e7993e044b7 (diff) | |
download | gtk+-13c258f891f00e12321b56de66a9e7cc02b76f72.tar.gz |
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
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkinput-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkinput-x11.c b/gdk/x11/gdkinput-x11.c index 22e39a05c7..c0b71e7bef 100644 --- a/gdk/x11/gdkinput-x11.c +++ b/gdk/x11/gdkinput-x11.c @@ -456,8 +456,8 @@ gdk_input_translate_coordinates (GdkDevicePrivate *gdkdev, 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; - x_offset = - impl_window->input_window->root_x; - y_offset = - impl_window->input_window->root_y; + x_offset = - impl_window->input_window->root_x - priv->abs_x; + y_offset = - impl_window->input_window->root_y - priv->abs_y; } else /* GDK_MODE_WINDOW */ { |