mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-26 09:41:57 -07:00
xwayland: fix compile with no xwayland
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
#include "../managers/XWaylandManager.hpp"
|
#include "../managers/XWaylandManager.hpp"
|
||||||
#include "../desktop/WLSurface.hpp"
|
#include "../desktop/WLSurface.hpp"
|
||||||
|
|
||||||
|
#ifndef NO_XWAYLAND
|
||||||
static xcb_atom_t dndActionToAtom(uint32_t actions) {
|
static xcb_atom_t dndActionToAtom(uint32_t actions) {
|
||||||
if (actions & WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY)
|
if (actions & WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY)
|
||||||
return HYPRATOMS["XdndActionCopy"];
|
return HYPRATOMS["XdndActionCopy"];
|
||||||
@@ -17,6 +18,7 @@ static xcb_atom_t dndActionToAtom(uint32_t actions) {
|
|||||||
|
|
||||||
return XCB_ATOM_NONE;
|
return XCB_ATOM_NONE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
eDataSourceType CX11DataOffer::type() {
|
eDataSourceType CX11DataOffer::type() {
|
||||||
return DATA_SOURCE_TYPE_X11;
|
return DATA_SOURCE_TYPE_X11;
|
||||||
|
Reference in New Issue
Block a user