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 1c2e780..6308fa9 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -552,7 +552,7 @@ setup(void)
552 XGetInputFocus(dpy, &w, &di); 552 XGetInputFocus(dpy, &w, &di);
553 if (mon != -1 && mon < n) 553 if (mon != -1 && mon < n)
554 i = mon; 554 i = mon;
555 if (!i && w != root && w != PointerRoot && w != None) { 555 else if (w != root && w != PointerRoot && w != None) {
556 /* find top-level window containing current input focus */ 556 /* find top-level window containing current input focus */
557 do { 557 do {
558 if (XQueryTree(dpy, (pw = w), &dw, &w, &dws, &du) && dws) 558 if (XQueryTree(dpy, (pw = w), &dw, &w, &dws, &du) && dws)