summaryrefslogtreecommitdiff
path: root/src/xterm.h
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2015-11-07 03:06:32 -0500
committerKen Raeburn <raeburn@raeburn.org>2015-11-12 03:58:09 -0500
commitc7f2b6ad892c93b8b848d21835a4b093c424cae6 (patch)
treec5be79d73006eda5c724cd3e07111b60d266484a /src/xterm.h
parente1c27dbd25ab22f6000d1e46259e2a60d56416c1 (diff)
downloademacs-c7f2b6ad892c93b8b848d21835a4b093c424cae6.tar.gz
Detect XCB and save a connection handle
* configure.ac: If using X11, check for XCB libraries and header. * src/Makefile.in (XCB_LIBS): Define. (LIBX_EXTRA): Include it. * src/xterm.h [USE_XCB]: Include X11/Xlib-xcb.h. (struct x_display_info) [USE_XCB]: Add an XCB connection handle field. * src/xterm.c (x_term_init) [USE_XCB]: Initialize the new field.
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index f7d2803ff29..192839b059e 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -87,6 +87,10 @@ typedef GtkWidget *xt_or_gtk_widget;
#include <X11/Xlocale.h>
#endif
+#ifdef USE_XCB
+#include <X11/Xlib-xcb.h>
+#endif
+
#include "dispextern.h"
#include "termhooks.h"
@@ -458,6 +462,10 @@ struct x_display_info
#ifdef USE_CAIRO
XExtCodes *ext_codes;
#endif
+
+#ifdef USE_XCB
+ xcb_connection_t *xcb_connection;
+#endif
};
#ifdef HAVE_X_I18N