[Xfce4-commits] [xfce/xfwm4] 03/03: compositor: avoid damage errors
noreply at xfce.org
noreply at xfce.org
Thu Apr 5 11:52:32 CEST 2018
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 e4b8d96f1d1270ff2be3ba9c6ada10fb7c7cb4df
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Wed Apr 4 22:23:49 2018 +0200
compositor: avoid damage errors
Bug: 14323
On unmap/destroy, the damage may already be destroyed along with the
attached resource, make sure we catch those errors so it doesn't bother
gtk+.
---
src/compositor.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/compositor.c b/src/compositor.c
index 52b7a2d..fe5529f 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -847,7 +847,9 @@ free_win_data (CWindow *cw, gboolean delete)
* X error eventually, but there's no way to be sure so just destroy
* the damage and ignore the error.
*/
+ myDisplayErrorTrapPush (display_info);
XDamageDestroy (display_info->dpy, cw->damage);
+ myDisplayErrorTrapPopIgnored (display_info);
cw->damage = None;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list