diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gdk/win32/gdkevents-win32.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -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 diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 285b736ceb..5059a88993 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -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; |