1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 01:57:09 +00:00

x11.cc: enable the error handlers by default (#588)

This commit is contained in:
lasers 2018-08-08 04:28:35 -05:00 committed by GitHub
parent bd0f287794
commit 2eaba52e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,7 +377,6 @@ imlib_cache_size_setting imlib_cache_size;
#endif
/******************** </SETTINGS> ************************/
#ifdef DEBUG
/* WARNING, this type not in Xlib spec */
static int __attribute__((noreturn))
x11_error_handler(Display *d, XErrorEvent *err) {
@ -394,7 +393,6 @@ static int __attribute__((noreturn)) x11_ioerror_handler(Display *d) {
NORM_ERR("X Error: Display %lx\n", (long unsigned)d);
exit(1);
}
#endif /* DEBUG */
/* X11 initializer */
static void init_X11() {
@ -425,12 +423,9 @@ static void init_X11() {
update_workarea();
#ifdef DEBUG
_Xdebug = 1;
/* WARNING, this type not in Xlib spec */
XSetErrorHandler(&x11_error_handler);
XSetIOErrorHandler(&x11_ioerror_handler);
#endif /* DEBUG */
}
static void deinit_X11() {