Add shaddows to override-redirect windows, e.g. Gtk menus (Gtk should really

be fixed not to use override redirect for menus as the maemo fork does).
This commit is contained in:
Tomas Frydrych 2008-08-18 16:16:38 +01:00
parent 4134949d72
commit 676a516ff2

View File

@ -290,6 +290,12 @@ is_shaped (MetaDisplay *display,
static gboolean
window_has_shadow (MetaCompWindow *cw)
{
if (cw->attrs.override_redirect)
{
meta_verbose ("Window has shadow because it is override redirect.\n");
return TRUE;
}
/* Always put a shadow around windows with a frame - This should override
the restriction about not putting a shadow around shaped windows
as the frame might be the reason the window is shaped */