From: Timm Bäder Date: Mon, 27 Jan 2020 13:21:44 +0000 (+0100) Subject: widget: Skip not-drawable widgets in snapshot_child X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~92^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=903af75fa19e9c5945b5ec52df52bf53c012fd08;p=gtk4.git widget: Skip not-drawable widgets in snapshot_child Otherwise we transform the snapshot just to not do anything. --- diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 62d15c6d2d..d93b4b13a5 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -12593,6 +12593,9 @@ gtk_widget_snapshot_child (GtkWidget *widget, if (GTK_IS_NATIVE (child)) return; + if (!_gtk_widget_get_mapped (child)) + return; + if (priv->transform) { gtk_snapshot_save (snapshot);