diff --git a/src/helpers/CursorShapes.hpp b/src/helpers/CursorShapes.hpp index cb95cd8b..3882c593 100644 --- a/src/helpers/CursorShapes.hpp +++ b/src/helpers/CursorShapes.hpp @@ -3,7 +3,7 @@ #include // clang-format off -constexpr std::array CURSOR_SHAPE_NAMES = { +constexpr std::array CURSOR_SHAPE_NAMES = { "invalid", "default", "context-menu", @@ -39,5 +39,7 @@ constexpr std::array CURSOR_SHAPE_NAMES = { "all-scroll", "zoom-in", "zoom-out", + "dnd-ask", + "all-resize" }; // clang-format on diff --git a/src/managers/ProtocolManager.cpp b/src/managers/ProtocolManager.cpp index f9f90ffe..0f27ffd6 100644 --- a/src/managers/ProtocolManager.cpp +++ b/src/managers/ProtocolManager.cpp @@ -150,7 +150,7 @@ CProtocolManager::CProtocolManager() { PROTO::tearing = makeUnique(&wp_tearing_control_manager_v1_interface, 1, "TearingControl"); PROTO::fractional = makeUnique(&wp_fractional_scale_manager_v1_interface, 1, "FractionalScale"); PROTO::xdgOutput = makeUnique(&zxdg_output_manager_v1_interface, 3, "XDGOutput"); - PROTO::cursorShape = makeUnique(&wp_cursor_shape_manager_v1_interface, 1, "CursorShape"); + PROTO::cursorShape = makeUnique(&wp_cursor_shape_manager_v1_interface, 2, "CursorShape"); PROTO::idleInhibit = makeUnique(&zwp_idle_inhibit_manager_v1_interface, 1, "IdleInhibit"); PROTO::relativePointer = makeUnique(&zwp_relative_pointer_manager_v1_interface, 1, "RelativePointer"); PROTO::xdgDecoration = makeUnique(&zxdg_decoration_manager_v1_interface, 1, "XDGDecoration"); diff --git a/src/managers/XCursorManager.cpp b/src/managers/XCursorManager.cpp index 307cbc84..5cde1dac 100644 --- a/src/managers/XCursorManager.cpp +++ b/src/managers/XCursorManager.cpp @@ -396,6 +396,10 @@ std::string CXCursorManager::getLegacyShapeName(std::string const& shape) { return "left_ptr"; else if (shape == "zoom-out") return "left_ptr"; + else if (shape == "dnd-ask") + return "dnd-copy"; + else if (shape == "all-resize") + return "fleur"; return std::string(); };