Fix coordinates reported from gdk_window_get_pointer (had sign reversed)

This commit is contained in:
Alexander Larsson 2008-12-04 15:46:09 +01:00 committed by Alexander Larsson
parent 47acf79494
commit 6a82287005

View File

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