widget: Stop using gdk_surface_set_opacity

This commit is contained in:
Matthias Clasen 2020-03-04 09:38:01 -08:00
parent d6be419050
commit 412a593618

View File

@ -10618,18 +10618,7 @@ gtk_widget_update_alpha (GtkWidget *widget)
priv->alpha = alpha;
if (_gtk_widget_get_realized (widget))
{
if (GTK_IS_NATIVE (widget))
{
gdk_surface_set_opacity (gtk_native_get_surface (GTK_NATIVE (widget)), priv->alpha / 255.0);
gtk_widget_queue_allocate (widget);
}
else
{
gtk_widget_queue_draw (widget);
}
}
gtk_widget_queue_draw (widget);
}
/**