forked from AuroraMiddleware/gtk
widget: Skip not-drawable widgets in snapshot_child
Otherwise we transform the snapshot just to not do anything.
This commit is contained in:
parent
6640881711
commit
903af75fa1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user