diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-08-03 10:19:20 +0900 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-08-15 15:14:53 -0400 |
commit | d21b53673b9de052004e761fd1299d2e788b44b8 (patch) | |
tree | bc21ab577f30078859add32dfd47ffdb0d407282 /present/present_screen.c | |
parent | 9f04fa3babaaabe0ed5bf4aa2563755bc6c45723 (diff) |
present: Call set_abort_flip / restore_screen_pixmap in clear_window_flip
We were asserting that these were called before from other places, but
that isn't always the case, e.g. during server shutdown.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96951
Reported-and-Tested-by: Tod Jackson <tod.jackson@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'present/present_screen.c')
-rw-r--r-- | present/present_screen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/present/present_screen.c b/present/present_screen.c index 2f91ac7dc..9d03c8aa4 100644 --- a/present/present_screen.c +++ b/present/present_screen.c @@ -92,11 +92,13 @@ present_clear_window_flip(WindowPtr window) present_vblank_ptr flip_pending = screen_priv->flip_pending; if (flip_pending && flip_pending->window == window) { - assert (flip_pending->abort_flip); + present_set_abort_flip(screen); flip_pending->window = NULL; } - if (screen_priv->flip_window == window) + if (screen_priv->flip_window == window) { + present_restore_screen_pixmap(screen); screen_priv->flip_window = NULL; + } } /* |