meta-window-actor: Correctly create a new pixmap when redirecting a window again

We should call meta_window_actor_detach not
meta_window_actor_queue_create_pixmap to create a new pixmap when we redirect a
previously unredirected window again.

https://bugzilla.gnome.org/show_bug.cgi?id=693042
This commit is contained in:
Adel Gadllah 2013-02-02 10:27:35 +01:00
parent 1cebe19bbe
commit 2ecc50af53

View File

@ -1217,7 +1217,7 @@ meta_window_actor_set_redirected (MetaWindowActor *self, gboolean state)
meta_error_trap_push (display); meta_error_trap_push (display);
XCompositeRedirectWindow (xdisplay, xwin, CompositeRedirectManual); XCompositeRedirectWindow (xdisplay, xwin, CompositeRedirectManual);
meta_error_trap_pop (display); meta_error_trap_pop (display);
meta_window_actor_queue_create_pixmap (self); meta_window_actor_detach (self);
self->priv->unredirected = FALSE; self->priv->unredirected = FALSE;
} }
else else