aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-10-04 21:39:56 +0100
committerConnor Lane Smith <cls@lubutu.com>2011-10-04 21:39:56 +0100
commit8e302717cb2d03c79c2f372f5e0489ea54dbb440 (patch)
tree3952c9a3b2af9928be40cd658dc5e690cc060fb9
parente30ad490b2b9048bc7e70fc81f0be2b378985f89 (diff)
input focus: fix for reparenting wms
-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++)