From d9a724c4a21abd58a6dd73d596ea02d46f68897a Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Sat, 3 Mar 2018 17:06:27 +0100 Subject: 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 --- include/xwayland/xwm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/xwayland') 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; -- cgit v1.2.3