[gtk+/client-side-windows: 19/284] Fix coordinates reported from gdk_window_get_pointer (had sign reversed)



commit 6a82287005d0c5edfef2237acd970fd7345eff98
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Dec 4 15:46:09 2008 +0100

    Fix coordinates reported from gdk_window_get_pointer (had sign reversed)
---
 gdk/gdkdisplay.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 40efc15..bc515b5 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]