aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-18 19:09:02 +0000
committerVaxry <[email protected]>2024-12-19 19:26:40 +0000
commit747c38112b69854d0e12ac10c8c7c3cc92a91a7c (patch)
tree539ea5ef656a64a404d152cba527b3b628e6189e
parent508e82341f37a954ffef9b1c4d470572deae1015 (diff)
downloadHyprland-747c38112b69854d0e12ac10c8c7c3cc92a91a7c.tar.gz
Hyprland-747c38112b69854d0e12ac10c8c7c3cc92a91a7c.zip
xwayland: fix compile with no xwayland
-rw-r--r--src/xwayland/Dnd.cpp2
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;