[Xfce4-commits] [xfce/xfwm4] 03/03: compositor: Disable XPresent on any error
noreply at xfce.org
noreply at xfce.org
Thu May 16 22:11:25 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 15b39030ac223c220111907b6f4d182f327d95d6
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Thu May 16 22:06:16 2019 +0200
compositor: Disable XPresent on any error
It's not worth keeping XPresent active if it generates XErrors.
Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
src/compositor.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/compositor.c b/src/compositor.c
index 70bb41d..3a859d6 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1721,8 +1721,7 @@ present_flip (ScreenInfo *screen_info, XserverRegion region, gushort buffer)
PresentOptionNone, 0, 1, 0, NULL, 0);
result = myDisplayErrorTrapPop (display_info);
- /* XPresentPixmap() can trigger a BadWindow rather than a BadMatch */
- if ((result == BadWindow) || (result == BadMatch))
+ if (result != 0)
{
present_error (display_info, result);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list