Closed arkq closed 10 years ago
Thanks for the report and the patch, Arkq! Although I'm not able to let XGetInputFocus()
return PointerRoot
under Flubox somehow, I rewrote wm_get_focused()
to fix all the little issues inside. (58b752f) Does it work for you right now?
Yes, right now everything works just fine. Thanks.
When activating skippy on an empty desktop with no faked root window (e.g. fluxbox), uninitialized pointer is freed.
It is caused by the fact that XGetInputFocus returns PointerRoot in this case, which is not checked. Passing this value as a window ID causes X* functions to fail. In the final results uninitialized pointer is freed (wm.c function wm_get_focused line XFree(children)).
Proposed patch: