[Xfce4-commits] [xfce/xfwm4] 01/02: compositor: Set present pending only on success
noreply at xfce.org
noreply at xfce.org
Thu May 16 22:32:10 CEST 2019
This is an automated email from the git hooks/post-receive script.
o l i v i e r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfwm4.
commit 6baf3b7c0c649cd7cc5aaf6c64c72a1a80777378
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Thu May 16 22:23:22 2019 +0200
compositor: Set present pending only on success
If present flip failed, we should not wait for the flip notification
that will never arrive.
Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
src/compositor.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/compositor.c b/src/compositor.c
index 3a859d6..cc6fabe 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1724,7 +1724,11 @@ present_flip (ScreenInfo *screen_info, XserverRegion region, gushort buffer)
if (result != 0)
{
present_error (display_info, result);
+ return;
}
+
+ screen_info->present_pending = TRUE;
+ DBG ("present flip requested, present pending...");
}
#endif /* HAVE_PRESENT_EXTENSION */
@@ -2352,8 +2356,6 @@ paint_all (ScreenInfo *screen_info, XserverRegion region, gushort buffer)
0, 0, 0, 0, 0, 0, screen_width, screen_height);
}
present_flip (screen_info, region, buffer);
- screen_info->present_pending = TRUE;
- DBG ("present flip requested, present pending...");
}
else
#endif /* HAVE_PRESENT_EXTENSION */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list