From: Keith Packard Date: Wed, 20 Nov 2013 06:13:54 +0000 (-0800) Subject: present: When unflipping, copy to flip window rather than screen X-Git-Tag: xorg-server-1.14.99.903~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6403cbb143c67872ca9c58e3116ae7942def0ae1;p=platform%2Fupstream%2Fxorg-server.git present: When unflipping, copy to flip window rather than screen unflip happens after the clip lists have been updated, so instead of smashing the whole screen and drawing over other windows, just draw to the original flip window; it'll have the right clip list and so the copy will work just fine. Signed-off-by: Keith Packard Reviewed-by: Adam Jackson --- diff --git a/present/present.c b/present/present.c index 16dc381..f9eef6b 100644 --- a/present/present.c +++ b/present/present.c @@ -321,8 +321,8 @@ present_unflip(ScreenPtr screen) /* Update the screen pixmap with the current flip pixmap contents */ - if (screen_priv->flip_pixmap) { - present_copy_region(&screen->GetScreenPixmap(screen)->drawable, + if (screen_priv->flip_pixmap && screen_priv->flip_window) { + present_copy_region(&screen_priv->flip_window->drawable, screen_priv->flip_pixmap, NULL, 0, 0); }