From d022f4c32de973e64c3a0d3452db888b709bbfe5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 30 May 2007 15:44:28 +0000 Subject: [PATCH] Subtract the multi-monitor offset from x and y before setting up the 2007-05-30 Tor Lillqvist * 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 --- ChangeLog | 6 ++++++ gdk/win32/gdkevents-win32.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 88d2ec31ff..e5b9a66a83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-30 Tor Lillqvist + + * 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 * 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;