#pragma once // because C/C++ VS Code intellisense is stupid with includes, we will suppress them here. // This suppresses all "include file not found" errors. #ifdef __INTELLISENSE__ #pragma diag_suppress 1696 #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #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 // pthread first because it uses class in a C++ way and XWayland includes that... #include #define class _class #define namespace _namespace #define static #define delete delete_ extern "C" { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if WLR_HAS_X11_BACKEND #include #endif #ifndef NO_XWAYLAND #include #endif } #undef delete #undef class #undef namespace #undef static #endif #ifdef LEGACY_RENDERER #include #include #define GLES2 #else #define GLES32 #include #include #endif #if !WLR_HAS_X11_BACKEND #include "helpers/X11Stubs.hpp" #endif #ifdef NO_XWAYLAND #define XWAYLAND false #include "helpers/XWaylandStubs.hpp" #else #define XWAYLAND true #endif #include "helpers/Vector2D.hpp" #include "ext-workspace-unstable-v1-protocol.h" #include "wlrunstable/wlr_ext_workspace_v1.hpp"