meta-window-actor: Skip unnecessary steps in pre_paint

We don't have to call check_needs_pixmap, check_needs_reshape
and check_needs_shadow on unredirected windows, so skip that.

https://bugzilla.gnome.org/show_bug.cgi?id=658228
This commit is contained in:
Adel Gadllah 2011-09-13 18:06:26 +02:00 committed by Jasper St. Pierre
parent 7223c4e184
commit 7c50db5bf5

View File

@ -2288,7 +2288,13 @@ meta_window_actor_pre_paint (MetaWindowActor *self)
return;
}
if (priv->received_damage && !self->priv->unredirected)
if (priv->unredirected)
{
/* Nothing to do here until/if the window gets redirected again */
return;
}
if (priv->received_damage)
{
meta_error_trap_push (display);
XDamageSubtract (xdisplay, priv->damage, None, None);