forked from AuroraMiddleware/gtk
Fix coordinates reported from gdk_window_get_pointer (had sign reversed)
This commit is contained in:
parent
47acf79494
commit
6a82287005
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user