Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
859eaac
)
Fix check_conn to work with older libxcb versions.
author
Reginald Kennedy
<rk@rejii.com>
Fri, 27 Jul 2012 15:01:17 +0000
(23:01 +0800)
committer
Reginald Kennedy
<rk@rejii.com>
Fri, 27 Jul 2012 15:01:17 +0000
(23:01 +0800)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
4c5974b
..
023613b
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-7407,6
+7407,7
@@
clientmessage(xcb_client_message_event_t *e)
xcb_flush(conn);
}
xcb_flush(conn);
}
+#ifdef XCB_CONN_ERROR
void
check_conn(void)
{
void
check_conn(void)
{
@@
-7436,6
+7437,14
@@
check_conn(void)
if (err)
errx(err, "X CONNECTION ERROR: %s", s);
}
if (err)
errx(err, "X CONNECTION ERROR: %s", s);
}
+#else
+void
+check_conn(void)
+{
+ if (conn->has_error)
+ errx(err, "X CONNECTION ERROR");
+}
+#endif
int
enable_wm(void)
int
enable_wm(void)