diff options
-rw-r--r-- | present/present.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/present/present.c b/present/present.c index 521083287..5fde84626 100644 --- a/present/present.c +++ b/present/present.c @@ -455,9 +455,10 @@ present_set_abort_flip(ScreenPtr screen) { present_screen_priv_ptr screen_priv = present_screen_priv(screen); - present_restore_screen_pixmap(screen); - - screen_priv->flip_pending->abort_flip = TRUE; + if (!screen_priv->flip_pending->abort_flip) { + present_restore_screen_pixmap(screen); + screen_priv->flip_pending->abort_flip = TRUE; + } } static void |