diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index c816d0e7f9..66b29f1b77 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -768,6 +768,9 @@ static void gtk_tooltip_set_last_window (GtkTooltip *tooltip, GdkWindow *window) { + if (tooltip->last_window == window) + return; + if (tooltip->last_window) g_object_remove_weak_pointer (G_OBJECT (tooltip->last_window), (gpointer *) &tooltip->last_window);