window: Properly destroy tooltip windows when parent window is destroyed
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 10 Jan 2014 08:27:35 +0000 (00:27 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 10 Jan 2014 08:27:35 +0000 (00:27 -0800)
commitb637a40df950398cb0b4ab7f77f73fc7e7886fe8
treeee29dfec6f00cf3a6323083f568ca019b4aa9d6d
parent9046d2424ab388a0acde1bf0a0c51e292d146f9f
window: Properly destroy tooltip windows when parent window is destroyed

If we destroy a window with an active tooltip, we leave the tooltip
hanging around.  Call tooltip destructor when destroying a window.
This fixes the stuck tooltip observed when unplugging a monitor with
an active tooltip on the panel.

Closes: https://bugs.freedesktop.org/show_bug.cgi?id=72931
clients/window.c