aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index 458f5ab..5d11932 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -510,7 +510,7 @@ setup(void) {
510 510
511 XGetInputFocus(dc->dpy, &w, &di); 511 XGetInputFocus(dc->dpy, &w, &di);
512 if(w != root && w != PointerRoot && w != None && XGetWindowAttributes(dc->dpy, w, &wa)) 512 if(w != root && w != PointerRoot && w != None && XGetWindowAttributes(dc->dpy, w, &wa))
513 XTranslateCoordinates(dc->dpy, root, root, wa.x, wa.y, &x, &y, &dw); 513 XTranslateCoordinates(dc->dpy, w, root, wa.x, wa.y, &x, &y, &dw);
514 else 514 else
515 XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du); 515 XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du);
516 for(i = 0; i < n-1; i++) 516 for(i = 0; i < n-1; i++)