Custom XErrorHandler to deal with invalid windows
Custom XErrorHandler to deal with invalid windows

There are some window managers (i.e. cwm) that report invalid (?)
windows that will raise a BadWindow error when given to
XGetWindowProperty().

Since there's no way to tell if a window ID is valid or not, it's
necessary to use a blind handler to intercept that BadWindow error.

markusfisch/PieDock,markusfisch/PieDock