diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2020-11-21 14:05:04 +0100 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2020-11-21 14:56:53 +0100 |
commit | 6b3c1ef155a01b61443b832b1922b560ef42ce24 (patch) | |
tree | 9152b91af51f8b7196d243442de8211acf9e411c /src | |
parent | 031bf67926659e3cd7bcb87354246b1b0af74b6c (diff) | |
download | xfwm4-6b3c1ef155a01b61443b832b1922b560ef42ce24.tar.gz |
xsync: Handle XError
XSync can fail, handle the XError gracefully.
Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Closes: https://gitlab.xfce.org/xfce/xfwm4/-/issues/448
Diffstat (limited to 'src')
-rw-r--r-- | src/xsync.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xsync.c b/src/xsync.c index 920dfdc17..e1c379f9d 100644 --- a/src/xsync.c +++ b/src/xsync.c @@ -113,7 +113,9 @@ clientDestroyXSyncAlarm (Client *c) screen_info = c->screen_info; display_info = screen_info->display_info; + myDisplayErrorTrapPush (display_info); XSyncDestroyAlarm (display_info->dpy, c->xsync_alarm); + myDisplayErrorTrapPopIgnored (display_info); c->xsync_alarm = None; } } |