mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
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:
parent
7c723dfc58
commit
1339c425a8
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user