aboutsummaryrefslogtreecommitdiff
path: root/include/xwayland
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-12 10:12:46 +0100
committeremersion <contact@emersion.fr>2018-11-12 10:12:46 +0100
commit51bfdd620e70c41e1a9fb4ce7831eddfb1bf893b (patch)
treef32586aa88e18d9bfec7cbcbeb5c682b2f35fb4a /include/xwayland
parent3181c4bec06d2fe51da052c0a08c8287725ec900 (diff)
Use #if instead of #ifdef for wlroots config data
This prevents some annoying issues when e.g. not including wlr/config.h or making a typo in the guard name.
Diffstat (limited to 'include/xwayland')
-rw-r--r--include/xwayland/xwm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h
index dc40cc3e..c1be572b 100644
--- a/include/xwayland/xwm.h
+++ b/include/xwayland/xwm.h
@@ -5,10 +5,10 @@
#include <wlr/config.h>
#include <wlr/xwayland.h>
#include <xcb/render.h>
-#ifdef WLR_HAS_XCB_ICCCM
+#if WLR_HAS_XCB_ICCCM
#include <xcb/xcb_icccm.h>
#endif
-#ifdef WLR_HAS_XCB_ERRORS
+#if WLR_HAS_XCB_ERRORS
#include <xcb/xcb_errors.h>
#endif
#include "xwayland/selection.h"
@@ -122,7 +122,7 @@ struct wlr_xwm {
struct wlr_xwayland_surface *drag_focus;
const xcb_query_extension_reply_t *xfixes;
-#ifdef WLR_HAS_XCB_ERRORS
+#if WLR_HAS_XCB_ERRORS
xcb_errors_context_t *errors_context;
#endif