mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Subtract the multi-monitor offset from x and y before setting up the
2007-05-30 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Subtract the multi-monitor offset from x and y before setting up the rectangle for ClipCursor(). Fixes #442326. svn path=/trunk/; revision=17988
This commit is contained in:
parent
8bcf5c23c3
commit
d022f4c32d
@ -1,3 +1,9 @@
|
||||
2007-05-30 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Subtract the
|
||||
multi-monitor offset from x and y before setting up the rectangle
|
||||
for ClipCursor(). Fixes #442326.
|
||||
|
||||
2007-05-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconview.c (gtk_icon_view_layout): Queue a resize
|
||||
|
@ -565,6 +565,9 @@ gdk_pointer_grab (GdkWindow *window,
|
||||
gdk_window_get_origin (confine_to, &x, &y);
|
||||
gdk_drawable_get_size (confine_to, &width, &height);
|
||||
|
||||
x -= _gdk_offset_x;
|
||||
y -= _gdk_offset_y;
|
||||
|
||||
rect.left = x;
|
||||
rect.top = y;
|
||||
rect.right = x + width;
|
||||
|
Loading…
Reference in New Issue
Block a user