From ebdabc203072c855f9e28a679630c8decc6911ff Mon Sep 17 00:00:00 2001 From: Cedric Sodhi Date: Fri, 9 Mar 2018 15:17:15 +0100 Subject: Make X11 fully optional Make X11 Backend (in addition to XWayland) optional and small bug fix on XWayland includes. --- rootston/input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rootston/input.c') diff --git a/rootston/input.c b/rootston/input.c index 657b0946..27ad1f6b 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -5,7 +5,9 @@ #include #include #include -#include +#ifdef WLR_HAS_XWAYLAND +# include +#endif #include "rootston/config.h" #include "rootston/input.h" #include "rootston/keyboard.h" -- cgit v1.2.3 From 706f77e3c735e49b4a051d545f40043a53e1ea2c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 26 Mar 2018 23:15:21 -0400 Subject: Address review feedback --- backend/backend.c | 2 +- rootston/input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rootston/input.c') diff --git a/backend/backend.c b/backend/backend.c index 96e155dc..02b0b9af 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -12,7 +12,7 @@ #include #include #ifdef WLR_HAS_X11_BACKEND -# include +#include #endif #include diff --git a/rootston/input.c b/rootston/input.c index 27ad1f6b..962be9fa 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -6,7 +6,7 @@ #include #include #ifdef WLR_HAS_XWAYLAND -# include +#include #endif #include "rootston/config.h" #include "rootston/input.h" -- cgit v1.2.3 From a0b52a0dff1e69f85e0095c58e3bda0b588caf45 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 27 Mar 2018 09:19:44 +0200 Subject: Fix x11 backend Need to include wlr/config.h before using the various WLR_HAS_xxx defines --- backend/backend.c | 5 ++++- include/xwayland/xwm.h | 1 + rootston/input.c | 1 + rootston/output.c | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) (limited to 'rootston/input.c') diff --git a/backend/backend.c b/backend/backend.c index 02b0b9af..52344dac 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -11,10 +11,13 @@ #include #include #include +#include +#include + +/* WLR_HAS_X11_BACKEND needs to be after wlr/config.h */ #ifdef WLR_HAS_X11_BACKEND #include #endif -#include void wlr_backend_init(struct wlr_backend *backend, const struct wlr_backend_impl *impl) { diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index 4b15cc84..9e21ea3a 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -2,6 +2,7 @@ #define XWAYLAND_XWM_H #include +#include #include #include diff --git a/rootston/input.c b/rootston/input.c index 962be9fa..3e1b06fb 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include diff --git a/rootston/output.c b/rootston/output.c index 8d6444d6..52ece54d 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3