[CONTACT]

[ABOUT]

[POLICY]

git clone dmenu dmenu Log gph

Found at: gopher.r-36.net:70/scm/dmenu/commit/e30ad490b2b9048bc7e70fc81f0be2b378985f89.gph

tfix monitor select when no focus - dmenu - Dmenu fork with xft fonts.

git clone git://r-36.net/dmenu

Log

Files

Refs

README

LICENSE

---

commit e30ad490b2b9048bc7e70fc81f0be2b378985f89

parent 50207344084b385839cef251f77f5129dc85874e

Author: Connor Lane Smith

Date:   Fri, 30 Sep 2011 21:08:37 +0100
fix monitor select when no focus
Diffstat:
  dmenu.c                             |       2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---

diff --git a/dmenu.c b/dmenu.c

t@@ -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);
.


AD: