diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-03-03 17:06:27 +0100 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-03-03 17:06:30 +0100 |
commit | d9a724c4a21abd58a6dd73d596ea02d46f68897a (patch) | |
tree | 3969f37088439395f4e13102e624f2f609c09133 /include/xwayland/xwm.h | |
parent | 7d1870c6f1c1dd14fe9fe13885021970f0cbdbe8 (diff) |
xcb errors: init errors context at start
`xcb_errors_context_new` is more than just a malloc, it does a few
xcb requests so we benefit from not generating a new context everytime
Diffstat (limited to 'include/xwayland/xwm.h')
-rw-r--r-- | include/xwayland/xwm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index 0ed61d37..e918ac11 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -105,6 +105,9 @@ struct wlr_xwm { struct wl_list unpaired_surfaces; // wlr_xwayland_surface::unpaired_link const xcb_query_extension_reply_t *xfixes; +#ifdef WLR_HAS_XCB_ERRORS + xcb_errors_context_t *errors_context; +#endif struct wl_listener compositor_new_surface; struct wl_listener compositor_destroy; |