diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index a1d5153cfd..12c15cba13 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -5635,7 +5635,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gtk_container_queue_resize_handler (GTK_CONTAINER (widget)); G_GNUC_END_IGNORE_DEPRECATIONS; } - else + else if (_gtk_widget_get_visible (widget)) { GtkWidget *parent = _gtk_widget_get_parent (widget); if (parent)