summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-04-02 10:31:14 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-04-02 11:40:04 -0400
commit6296fefea615eb46f1096948b6d16ff26403aeba (patch)
treee146c8106615a52d1aee69b17013aed061810851
parentc1e3a6b742e5e947aa973e0d6e5c83124d3e9b07 (diff)
downloadmutter-6296fefea615eb46f1096948b6d16ff26403aeba.tar.gz
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.
-rw-r--r--src/compositor/meta-window-actor.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index f7f32a0e5..ae5a276ed 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -702,7 +702,6 @@ static gboolean
meta_window_actor_has_shadow (MetaWindowActor *self)
{
MetaWindowActorPrivate *priv = self->priv;
- MetaWindowType window_type = meta_window_get_window_type (priv->window);
if (priv->no_shadow)
return FALSE;
@@ -741,25 +740,6 @@ meta_window_actor_has_shadow (MetaWindowActor *self)
if (priv->window->override_redirect)
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;
}