From 52805feae9bd6332c972065c799f4ac3b7ef2275 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 18 Nov 2020 19:06:45 +0100 Subject: backend/x11: log errors Register an X11 error handler, and optionally use xcb-errors to print a detailed message. --- include/backend/x11.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/backend/x11.h b/include/backend/x11.h index 03396361..7ce3ed98 100644 --- a/include/backend/x11.h +++ b/include/backend/x11.h @@ -1,14 +1,19 @@ #ifndef BACKEND_X11_H #define BACKEND_X11_H +#include + #include #include #include #include +#if WLR_HAS_XCB_ERRORS +#include +#endif + #include -#include #include #include #include @@ -81,6 +86,10 @@ struct wlr_x11_backend { // The time we last received an event xcb_timestamp_t time; +#if WLR_HAS_XCB_ERRORS + xcb_errors_context_t *errors_context; +#endif + uint8_t xinput_opcode; struct wl_listener display_destroy; -- cgit v1.2.3