summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2019-05-12 17:33:42 +0200
committerOlivier Fourdan <fourdan@xfce.org>2019-05-12 17:33:42 +0200
commitf06d814d5b26e9206675522e91bef785662dd6ae (patch)
tree383fdc46f10fd908fb8387db8a1611171d6c5ad7 /src/misc.c
parent944769cfeaa459de3e31145e798822e2c63d2b4c (diff)
downloadxfwm4-f06d814d5b26e9206675522e91bef785662dd6ae.tar.gz
screen: We always query the root window
We always query the root window for pointer location, there is no point in passing it around through the API really. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/misc.c b/src/misc.c
index 080b1f096..05db3dbb6 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -45,7 +45,7 @@
#include "misc.h"
guint
-getMouseXY (ScreenInfo *screen_info, Window w, gint *x2, gint *y2)
+getMouseXY (ScreenInfo *screen_info, gint *x2, gint *y2)
{
Window w1, w2;
guint mask;
@@ -54,8 +54,9 @@ getMouseXY (ScreenInfo *screen_info, Window w, gint *x2, gint *y2)
TRACE ("window (0x%lx)", w);
myDisplayErrorTrapPush (screen_info->display_info);
- XQueryPointer (myScreenGetXDisplay (screen_info), w, &w1, &w2, &x1, &y1, x2, y2, &mask);
+ XQueryPointer (myScreenGetXDisplay (screen_info), screen_info->xroot, &w1, &w2, &x1, &y1, x2, y2, &mask);
myDisplayErrorTrapPopIgnored (screen_info->display_info);
+
return mask;
}