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:
parent
7223c4e184
commit
7c50db5bf5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user