Commit a2c65d47 authored by Alexander Larsson's avatar Alexander Larsson

Fix gtk_window_set_opacity()

We *do* want to call gdk_window_set_opacity() on toplevels, because
this particular case does work.

https://bugzilla.gnome.org/show_bug.cgi?id=697263
parent 246f32a5
......@@ -14271,7 +14271,8 @@ gtk_widget_propagate_alpha (GtkWidget *widget)
if (gtk_widget_get_has_window (widget))
{
if (priv->window != NULL && !gdk_window_has_native (priv->window))
if (priv->window != NULL &&
(!gdk_window_has_native (priv->window) || gtk_widget_is_toplevel (widget)))
gdk_window_set_opacity (priv->window,
norender ? 0 : priv->alpha / 255.0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment