Commit b637a40d authored by Kristian Høgsberg's avatar Kristian Høgsberg
Browse files

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.

parent 9046d242
......@@ -1653,10 +1653,8 @@ widget_destroy(struct widget *widget)
if (surface->widget == widget && surface->subsurface)
if (widget->tooltip) {
widget->tooltip = NULL;
if (widget->tooltip)
wl_list_for_each(input, &display->input_list, link) {
if (input->focus_widget == widget)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment