diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-06 11:59:57 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-04-09 21:54:38 +0200 |
commit | 1eb38e001503636a8e5058051e9256d70f1bffcc (patch) | |
tree | c33d204acec48d036a60033de949519f4c58abe8 /xwayland | |
parent | 78befa59f96bb0a13e9ffeb4df1272738c6b5012 (diff) |
Remove WLR_HAS_XCB_ERRORS
wlroots' dependency on this library doesn't change the features
exposed to compositors. It's purely a wlroots implementation detail.
Thus downstream compositors shouldn't really care about it.
Introduce an "internal_features" dictionary to store the status of
such internal dependencies.
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/meson.build | 7 | ||||
-rw-r--r-- | xwayland/xwm.c | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/xwayland/meson.build b/xwayland/meson.build index 09a7c6c2..bbf96eac 100644 --- a/xwayland/meson.build +++ b/xwayland/meson.build @@ -56,10 +56,9 @@ foreach lib, desc : xwayland_optional required: get_option(lib), not_found_message: '\n'.join(msg).format(lib), ) - if dep.found() - xwayland_libs += dep - features += { lib: true } - endif + + internal_features += { lib: dep.found() } + xwayland_libs += dep endforeach wlr_files += files( diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 25359834..f380f8f1 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -1330,7 +1330,7 @@ static void xwm_handle_focus_in(struct wlr_xwm *xwm, } static void xwm_handle_xcb_error(struct wlr_xwm *xwm, xcb_value_error_t *ev) { -#if WLR_HAS_XCB_ERRORS +#if HAS_XCB_ERRORS const char *major_name = xcb_errors_get_name_for_major_code(xwm->errors_context, ev->major_opcode); @@ -1368,7 +1368,7 @@ log_raw: } static void xwm_handle_unhandled_event(struct wlr_xwm *xwm, xcb_generic_event_t *ev) { -#if WLR_HAS_XCB_ERRORS +#if HAS_XCB_ERRORS const char *extension; const char *event_name = xcb_errors_get_name_for_xcb_event(xwm->errors_context, @@ -1598,7 +1598,7 @@ void xwm_destroy(struct wlr_xwm *xwm) { if (xwm->event_source) { wl_event_source_remove(xwm->event_source); } -#if WLR_HAS_XCB_ERRORS +#if HAS_XCB_ERRORS if (xwm->errors_context) { xcb_errors_context_free(xwm->errors_context); } @@ -1840,7 +1840,7 @@ struct wlr_xwm *xwm_create(struct wlr_xwayland *xwayland, int wm_fd) { return NULL; } -#if WLR_HAS_XCB_ERRORS +#if HAS_XCB_ERRORS if (xcb_errors_context_new(xwm->xcb_conn, &xwm->errors_context)) { wlr_log(WLR_ERROR, "Could not allocate error context"); xwm_destroy(xwm); |