widget: Skip not-drawable widgets in snapshot_child

Otherwise we transform the snapshot just to not do anything.
This commit is contained in:
Timm Bäder 2020-01-27 14:21:44 +01:00 committed by Benjamin Otte
parent 6640881711
commit 903af75fa1

View File

@ -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);