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:
Tor Lillqvist 2007-05-30 15:44:28 +00:00 committed by Tor Lillqvist
parent 8bcf5c23c3
commit d022f4c32d
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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;