Commit 6a822870 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

Fix coordinates reported from gdk_window_get_pointer (had sign reversed)

parent 47acf794
...@@ -531,8 +531,8 @@ gdk_window_real_window_get_pointer (GdkDisplay *display, ...@@ -531,8 +531,8 @@ gdk_window_real_window_get_pointer (GdkDisplay *display,
&tmpx, &tmpy, &tmpx, &tmpy,
mask); mask);
/* We got the coords on the impl, conver to the window */ /* We got the coords on the impl, conver to the window */
tmpx += private->abs_x; tmpx -= private->abs_x;
tmpy += private->abs_y; tmpy -= private->abs_y;
if (x) if (x)
*x = tmpx; *x = tmpx;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment