1
0

input focus: fix for reparenting wms

This commit is contained in:
Connor Lane Smith 2011-10-04 21:39:56 +01:00
parent 9d8b545ed4
commit f90d89fd38

View File

@ -510,7 +510,7 @@ setup(void) {
XGetInputFocus(dc->dpy, &w, &di); XGetInputFocus(dc->dpy, &w, &di);
if(w != root && w != PointerRoot && w != None && 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); XTranslateCoordinates(dc->dpy, w, root, wa.x, wa.y, &x, &y, &dw);
else else
XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du); XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du);
for(i = 0; i < n-1; i++) for(i = 0; i < n-1; i++)