widget: Queue an allocate on native widgets when changing opacity

This way the opacity change works on toplevel windows on wayland.
This commit is contained in:
Timm Bäder 2019-08-28 14:24:50 +02:00
parent 7c723dfc58
commit 1339c425a8

View File

@ -11287,9 +11287,14 @@ gtk_widget_update_alpha (GtkWidget *widget)
if (_gtk_widget_get_realized (widget))
{
if (GTK_IS_NATIVE (widget))
gdk_surface_set_opacity (priv->surface, priv->alpha / 255.0);
gtk_widget_queue_draw (widget);
{
gdk_surface_set_opacity (priv->surface, priv->alpha / 255.0);
gtk_widget_queue_allocate (widget);
}
else
{
gtk_widget_queue_draw (widget);
}
}
}