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
This commit is contained in:
Alexander Larsson 2013-04-04 15:38:40 +02:00
parent 246f32a58d
commit a2c65d47b0

View File

@ -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);
}