meta-window-actor: Don't add shadows to popups if the toolkit already does

GTK+ will add its own shadows client-side, so we don't need to anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=731353
This commit is contained in:
Florian Müllner 2014-06-07 11:03:01 +02:00
parent 98e219da4b
commit af3aae7295

View File

@ -746,9 +746,11 @@ meta_window_actor_has_shadow (MetaWindowActor *self)
return FALSE; return FALSE;
/* /*
* Add shadows to override redirect windows (e.g., Gtk menus). * Add shadows to override redirect windows on X11 unless the toolkit
* indicates that it is handling shadows itself (e.g., Gtk menus).
*/ */
if (priv->window->override_redirect) if (priv->window->override_redirect &&
!priv->window->has_custom_frame_extents)
return TRUE; return TRUE;
return FALSE; return FALSE;