diff options
author | Vaxry <[email protected]> | 2024-12-18 19:09:02 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-18 19:09:02 +0000 |
commit | 0fec38fe727954e5c4cf51423a6aba03646ad5da (patch) | |
tree | 6df7510262ec56c5805c9ad9154c6cf1f1c29ce1 | |
parent | 80a4852266643c622ec68969b39c5abc3c610f30 (diff) | |
download | Hyprland-0fec38fe727954e5c4cf51423a6aba03646ad5da.tar.gz Hyprland-0fec38fe727954e5c4cf51423a6aba03646ad5da.zip |
xwayland: fix compile with no xwayland
-rw-r--r-- | src/xwayland/Dnd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xwayland/Dnd.cpp b/src/xwayland/Dnd.cpp index fed1914a..58fc6db3 100644 --- a/src/xwayland/Dnd.cpp +++ b/src/xwayland/Dnd.cpp @@ -7,6 +7,7 @@ #include "../managers/XWaylandManager.hpp" #include "../desktop/WLSurface.hpp" +#ifndef NO_XWAYLAND static xcb_atom_t dndActionToAtom(uint32_t actions) { if (actions & WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY) return HYPRATOMS["XdndActionCopy"]; @@ -17,6 +18,7 @@ static xcb_atom_t dndActionToAtom(uint32_t actions) { return XCB_ATOM_NONE; } +#endif eDataSourceType CX11DataOffer::type() { return DATA_SOURCE_TYPE_X11; |