meta_window_actor_has_shadow: remove verbosity
meta_window_actor_has_shadow() is called for every paint for every window, verbosely logging in it makes the output of MUTTER_VERBOSE pretty much useless.
This commit is contained in:
parent
b0a099935b
commit
ba4f008d40
@ -748,11 +748,7 @@ meta_window_actor_has_shadow (MetaWindowActor *self)
|
|||||||
if (priv->window)
|
if (priv->window)
|
||||||
{
|
{
|
||||||
if (meta_window_get_frame (priv->window))
|
if (meta_window_get_frame (priv->window))
|
||||||
{
|
return TRUE;
|
||||||
meta_verbose ("Window 0x%x has shadow because it has a frame\n",
|
|
||||||
(guint)priv->xwindow);
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -760,55 +756,33 @@ meta_window_actor_has_shadow (MetaWindowActor *self)
|
|||||||
* shadow from the input shape for such windows.
|
* shadow from the input shape for such windows.
|
||||||
*/
|
*/
|
||||||
if (priv->argb32 || priv->opacity != 0xff)
|
if (priv->argb32 || priv->opacity != 0xff)
|
||||||
{
|
return FALSE;
|
||||||
meta_verbose ("Window 0x%x has no shadow as it is ARGB\n",
|
|
||||||
(guint)priv->xwindow);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add shadows to override redirect windows (e.g., Gtk menus).
|
* Add shadows to override redirect windows (e.g., Gtk menus).
|
||||||
*/
|
*/
|
||||||
if (priv->window->override_redirect)
|
if (priv->window->override_redirect)
|
||||||
{
|
return TRUE;
|
||||||
meta_verbose ("Window 0x%x has shadow because it is override redirect.\n",
|
|
||||||
(guint)priv->xwindow);
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Don't put shadow around DND icon windows
|
* Don't put shadow around DND icon windows
|
||||||
*/
|
*/
|
||||||
if (window_type == META_WINDOW_DND ||
|
if (window_type == META_WINDOW_DND ||
|
||||||
window_type == META_WINDOW_DESKTOP)
|
window_type == META_WINDOW_DESKTOP)
|
||||||
{
|
return FALSE;
|
||||||
meta_verbose ("Window 0x%x has no shadow as it is DND or Desktop\n",
|
|
||||||
(guint)priv->xwindow);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window_type == META_WINDOW_MENU
|
if (window_type == META_WINDOW_MENU
|
||||||
#if 0
|
#if 0
|
||||||
|| window_type == META_WINDOW_DROPDOWN_MENU
|
|| window_type == META_WINDOW_DROPDOWN_MENU
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
return TRUE;
|
||||||
meta_verbose ("Window 0x%x has shadow as it is a menu\n",
|
|
||||||
(guint)priv->xwindow);
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (window_type == META_WINDOW_TOOLTIP)
|
if (window_type == META_WINDOW_TOOLTIP)
|
||||||
{
|
return TRUE;
|
||||||
meta_verbose ("Window 0x%x has shadow as it is a tooltip\n",
|
|
||||||
(guint)priv->xwindow);
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
meta_verbose ("Window 0x%x has no shadow as it fell through\n",
|
|
||||||
(guint)priv->xwindow);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user