X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=3b240f1052965fbd9531e37a1eb69ee0c1726f45;hb=1fa17c86c27db076578a215f9393663c083644cd;hp=4c5974b84d3c9ff6e48cc5e3128c5a854ff84603;hpb=859eaac28f40b3bfe5544c7ee16e5054dd2e5f53;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index 4c5974b..3b240f1 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -7407,6 +7407,7 @@ clientmessage(xcb_client_message_event_t *e) xcb_flush(conn); } +#ifdef XCB_CONN_ERROR void check_conn(void) { @@ -7436,6 +7437,14 @@ check_conn(void) if (err) errx(err, "X CONNECTION ERROR: %s", s); } +#else +void +check_conn(void) +{ + if (conn->has_error) + errx(1, "X CONNECTION ERROR"); +} +#endif int enable_wm(void)