From a3ca016d42283ce1d2d5ffca40b93123b4290f4b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 2 May 2024 16:20:51 +0100 Subject: cursor-shape: use - instead of _ in shapes ref #5824 --- src/managers/CursorManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/managers/CursorManager.cpp') diff --git a/src/managers/CursorManager.cpp b/src/managers/CursorManager.cpp index c7e47120..fa5ee8cd 100644 --- a/src/managers/CursorManager.cpp +++ b/src/managers/CursorManager.cpp @@ -117,16 +117,16 @@ void CCursorManager::setCursorFromName(const std::string& name) { m_sCurrentCursorShapeData = m_pHyprcursor->getShape(name.c_str(), m_sCurrentStyleInfo); if (m_sCurrentCursorShapeData.images.size() < 1) { - // try with '-' first (xcursor, web, etc) + // try with '_' first (old hc, etc) std::string newName = name; - std::replace(newName.begin(), newName.end(), '_', '-'); + std::replace(newName.begin(), newName.end(), '-', '_'); m_sCurrentCursorShapeData = m_pHyprcursor->getShape(newName.c_str(), m_sCurrentStyleInfo); } if (m_sCurrentCursorShapeData.images.size() < 1) { // fallback to a default if available - constexpr const std::array fallbackShapes = {"default", "left_ptr"}; + constexpr const std::array fallbackShapes = {"default", "left_ptr", "left-ptr"}; for (auto& s : fallbackShapes) { m_sCurrentCursorShapeData = m_pHyprcursor->getShape(s, m_sCurrentStyleInfo); -- cgit v1.2.3