From 6a82287005d0c5edfef2237acd970fd7345eff98 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 4 Dec 2008 15:46:09 +0100 Subject: [PATCH] Fix coordinates reported from gdk_window_get_pointer (had sign reversed) --- gdk/gdkdisplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index 40efc153d1..bc515b540b 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -531,8 +531,8 @@ gdk_window_real_window_get_pointer (GdkDisplay *display, &tmpx, &tmpy, mask); /* We got the coords on the impl, conver to the window */ - tmpx += private->abs_x; - tmpy += private->abs_y; + tmpx -= private->abs_x; + tmpy -= private->abs_y; if (x) *x = tmpx;