input focus: fix for reparenting wms
8e302717
1 file(s) · +1 −1
| 510 | 510 | ||
| 511 | 511 | XGetInputFocus(dc->dpy, &w, &di); |
|
| 512 | 512 | if(w != root && w != PointerRoot && w != None && XGetWindowAttributes(dc->dpy, w, &wa)) |
|
| 513 | - | XTranslateCoordinates(dc->dpy, root, root, wa.x, wa.y, &x, &y, &dw); |
|
| 513 | + | XTranslateCoordinates(dc->dpy, w, root, wa.x, wa.y, &x, &y, &dw); |
|
| 514 | 514 | else |
|
| 515 | 515 | XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du); |
|
| 516 | 516 | for(i = 0; i < n-1; i++) |