Explorar el Código

fix monitor select when no focus

master
Connor Lane Smith hace 12 años
padre
commit
e30ad490b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      dmenu.c

+ 1
- 1
dmenu.c Ver fichero

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


Cargando…
Cancelar
Guardar