As described in #61, the plugin currently crashes frequently. This can reliably be reproduced by setting the plugin to track active windows, and not show on the desktop. Then closing the last non-minimised window on a workspace will always cause the window title plugin to crash. This commit fixes this by checking whether the controlwindow argument of in on_name_changed refers to a window belonging to an existing process.
As described in #61, the plugin currently crashes frequently. This can reliably be reproduced by setting the plugin to track active windows, and not show on the desktop. Then closing the last non-minimised window on a workspace will always cause the window title plugin to crash. This commit fixes this by checking whether the controlwindow argument of in on_name_changed refers to a window belonging to an existing process.