summaryrefslogtreecommitdiff
path: root/src/includes.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2022-10-27 11:26:35 +0100
committerGitHub <noreply@github.com>2022-10-27 11:26:35 +0100
commitd5a0610ea26c7086301db1c397a4d5b48ad469b4 (patch)
treeea006320d41f423cb865700a14729f8111dfeb26 /src/includes.hpp
parent4aebb73de005e50bb08bacb0bb26ea89e0bd2818 (diff)
No xwayland overhaul (#920)
Diffstat (limited to 'src/includes.hpp')
-rw-r--r--src/includes.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/includes.hpp b/src/includes.hpp
index 55e8282b..607eb539 100644
--- a/src/includes.hpp
+++ b/src/includes.hpp
@@ -22,7 +22,6 @@
#include <filesystem>
#include <climits>
-
#if true
// wlroots uses dumb-ass shit that makes it not compile on C++, let's fix that.
// https://github.com/swaywm/wlroots/issues/682
@@ -80,13 +79,11 @@ extern "C" {
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
#include <wlr/types/wlr_idle_inhibit_v1.h>
#include <wlr/util/log.h>
-#include <wlr/xwayland.h>
#include <wlr/util/region.h>
#include <wlr/types/wlr_tablet_pad.h>
#include <wlr/types/wlr_tablet_tool.h>
#include <wlr/types/wlr_tablet_v2.h>
#include <xkbcommon/xkbcommon.h>
-#include <X11/Xproto.h>
#include <wlr/render/egl.h>
#include <wlr/render/gles2.h>
#include <wlr/render/wlr_texture.h>
@@ -102,6 +99,11 @@ extern "C" {
#include <wlr/types/wlr_text_input_v3.h>
#include <wlr/types/wlr_touch.h>
#include <wlr/types/wlr_switch.h>
+
+#ifndef NO_XWAYLAND
+#include <wlr/xwayland.h>
+#include <X11/Xproto.h>
+#endif
}
#undef delete
@@ -122,6 +124,7 @@ extern "C" {
#ifdef NO_XWAYLAND
#define XWAYLAND false
+#include "helpers/XWaylandStubs.hpp"
#else
#define XWAYLAND true
#endif