diff options
author | Simon Ser <contact@emersion.fr> | 2020-11-18 19:06:45 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-24 14:57:25 +0100 |
commit | 52805feae9bd6332c972065c799f4ac3b7ef2275 (patch) | |
tree | 27f13a8bb445fa6a176363e7539243fa0b0a7049 /include/backend | |
parent | 262740bc9a282554c8aacb001e06aeb96d0afdce (diff) |
backend/x11: log errors
Register an X11 error handler, and optionally use xcb-errors to print a
detailed message.
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/x11.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <wlr/config.h> + #include <stdbool.h> #include <X11/Xlib-xcb.h> #include <wayland-server-core.h> #include <xcb/xcb.h> +#if WLR_HAS_XCB_ERRORS +#include <xcb/xcb_errors.h> +#endif + #include <wlr/backend/x11.h> -#include <wlr/config.h> #include <wlr/interfaces/wlr_input_device.h> #include <wlr/interfaces/wlr_keyboard.h> #include <wlr/interfaces/wlr_output.h> @@ -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; |