summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-26 12:10:48 -0800
committerKeith Packard <keithp@keithp.com>2013-12-05 09:51:00 -0800
commit5cf12c9569ac3d83fe1b7a8376c15f8f0b01655e (patch)
tree2aebccc38be0859acd7d90b9bd092756997ced10
parent4aa77378de69efdc10bced6ba650b0ebff50c112 (diff)
present: Also set the root window pixmap when flipping
This makes sure that things like software cursors continue to work while the screen is flipped. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--present/present.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/present/present.c b/present/present.c
index 3fd5e8bb1..251931a06 100644
--- a/present/present.c
+++ b/present/present.c
@@ -324,6 +324,8 @@ present_unflip(ScreenPtr screen)
(*screen->SetWindowPixmap)(screen_priv->flip_window,
(*screen->GetScreenPixmap)(screen));
+ (*screen->SetWindowPixmap)(screen->root, (*screen->GetScreenPixmap)(screen));
+
/* Update the screen pixmap with the current flip pixmap contents
*/
if (screen_priv->flip_pixmap && screen_priv->flip_window) {
@@ -527,6 +529,7 @@ present_execute(present_vblank_ptr vblank, uint64_t ust, uint64_t crtc_msc)
(*screen->SetWindowPixmap)(screen_priv->flip_window,
(*screen->GetScreenPixmap)(screen));
(*screen->SetWindowPixmap)(vblank->window, vblank->pixmap);
+ (*screen->SetWindowPixmap)(screen->root, vblank->pixmap);
return;
}