xwayland: don't define atoms on no_xwayland builds

fixes #8661
This commit is contained in:
Vaxry 2025-01-04 17:35:11 +01:00
parent a25d228840
commit e8317ae34d

View file

@ -34,6 +34,7 @@ class CXWayland {
inline std::unique_ptr<CXWayland> g_pXWayland; inline std::unique_ptr<CXWayland> g_pXWayland;
inline std::unordered_map<std::string, uint32_t> HYPRATOMS = { inline std::unordered_map<std::string, uint32_t> HYPRATOMS = {
#ifndef NO_XWAYLAND
HYPRATOM("_NET_SUPPORTED"), HYPRATOM("_NET_SUPPORTED"),
HYPRATOM("_NET_SUPPORTING_WM_CHECK"), HYPRATOM("_NET_SUPPORTING_WM_CHECK"),
HYPRATOM("_NET_WM_NAME"), HYPRATOM("_NET_WM_NAME"),
@ -126,4 +127,5 @@ inline std::unordered_map<std::string, uint32_t> HYPRATOMS = {
HYPRATOM("DELETE"), HYPRATOM("DELETE"),
HYPRATOM("TEXT"), HYPRATOM("TEXT"),
HYPRATOM("INCR"), HYPRATOM("INCR"),
#endif
}; };