From c7f2b6ad892c93b8b848d21835a4b093c424cae6 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 7 Nov 2015 03:06:32 -0500 Subject: 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. --- src/xterm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/xterm.h') 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 #endif +#ifdef USE_XCB +#include +#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 -- cgit v1.2.1