pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5020734
)
fix monitor select when no focus
author
Connor Lane Smith
<cls@lubutu.com>
Fri, 30 Sep 2011 20:08:37 +0000
(21:08 +0100)
committer
Connor Lane Smith
<cls@lubutu.com>
Fri, 30 Sep 2011 20:08:37 +0000
(21:08 +0100)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
9d479f9
..
458f5ab
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-509,7
+509,7
@@
setup(void) {
XWindowAttributes wa;
XGetInputFocus(dc->dpy, &w, &di);
- if(w != root && XGetWindowAttributes(dc->dpy, w, &wa))
+ if(w != root &&
w != PointerRoot && w != None &&
XGetWindowAttributes(dc->dpy, w, &wa))
XTranslateCoordinates(dc->dpy, root, root, wa.x, wa.y, &x, &y, &dw);
else
XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du);