aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwm.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-25 18:15:31 +0100
committerAlexander Orzechowski <alex@ozal.ski>2022-12-06 22:39:45 +0000
commit86fc2199f85ac0e1089bb7fd5a0b5cbc432bdb67 (patch)
tree3b97acbbdd4d2bf3b956d2e2594bd5b79958dfee /xwayland/xwm.c
parenta4a40618adb287d6ebebf099ca4d64f39b7f7770 (diff)
build: unify naming for HAVE_* defines
We sometimes used HAS_, sometimes polluted the LIBINPUT_ namespace, etc.
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r--xwayland/xwm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 9dcc0da6..61d29f91 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -1534,7 +1534,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 HAS_XCB_ERRORS
+#if HAVE_XCB_ERRORS
const char *major_name =
xcb_errors_get_name_for_major_code(xwm->errors_context,
ev->major_opcode);
@@ -1572,7 +1572,7 @@ log_raw:
}
static void xwm_handle_unhandled_event(struct wlr_xwm *xwm, xcb_generic_event_t *ev) {
-#if HAS_XCB_ERRORS
+#if HAVE_XCB_ERRORS
const char *extension;
const char *event_name =
xcb_errors_get_name_for_xcb_event(xwm->errors_context,
@@ -1797,7 +1797,7 @@ void xwm_destroy(struct wlr_xwm *xwm) {
if (xwm->event_source) {
wl_event_source_remove(xwm->event_source);
}
-#if HAS_XCB_ERRORS
+#if HAVE_XCB_ERRORS
if (xwm->errors_context) {
xcb_errors_context_free(xwm->errors_context);
}
@@ -2072,7 +2072,7 @@ struct wlr_xwm *xwm_create(struct wlr_xwayland *xwayland, int wm_fd) {
return NULL;
}
-#if HAS_XCB_ERRORS
+#if HAVE_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);