mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 11:30:45 -05:00
window-actor: Clean up has_shadow
This has some particularly picky #if 0'd code. Since the history for it isn't illuminating in the slightest, I'm just going to kill it.
This commit is contained in:
parent
c1e3a6b742
commit
6296fefea6
@ -702,7 +702,6 @@ static gboolean
|
|||||||
meta_window_actor_has_shadow (MetaWindowActor *self)
|
meta_window_actor_has_shadow (MetaWindowActor *self)
|
||||||
{
|
{
|
||||||
MetaWindowActorPrivate *priv = self->priv;
|
MetaWindowActorPrivate *priv = self->priv;
|
||||||
MetaWindowType window_type = meta_window_get_window_type (priv->window);
|
|
||||||
|
|
||||||
if (priv->no_shadow)
|
if (priv->no_shadow)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -741,25 +740,6 @@ meta_window_actor_has_shadow (MetaWindowActor *self)
|
|||||||
if (priv->window->override_redirect)
|
if (priv->window->override_redirect)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/*
|
|
||||||
* Don't put shadow around DND icon windows
|
|
||||||
*/
|
|
||||||
if (window_type == META_WINDOW_DND ||
|
|
||||||
window_type == META_WINDOW_DESKTOP)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if (window_type == META_WINDOW_MENU
|
|
||||||
#if 0
|
|
||||||
|| window_type == META_WINDOW_DROPDOWN_MENU
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (window_type == META_WINDOW_TOOLTIP)
|
|
||||||
return TRUE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user