fix monitor select when no focus e30ad490
Connor Lane Smith · 2011-09-30 21:08 1 file(s) · +1 −1
dmenu.c +1 −1
509 509
		XWindowAttributes wa;
510 510
511 511
		XGetInputFocus(dc->dpy, &w, &di);
512 -
		if(w != root && XGetWindowAttributes(dc->dpy, w, &wa))
512 +
		if(w != root && w != PointerRoot && w != None && XGetWindowAttributes(dc->dpy, w, &wa))
513 513
			XTranslateCoordinates(dc->dpy, root, root, wa.x, wa.y, &x, &y, &dw);
514 514
		else
515 515
			XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du);