Skip to content

Commit

Permalink
cursor: Fallback to xcursor if failed to render hyprcursor (hyprwm#5534)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoSeDiK authored and lisuke committed Apr 15, 2024
1 parent 9265bc2 commit 8bdb7b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/managers/CursorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ void CCursorManager::setCursorFromName(const std::string& name) {

if (m_sCurrentCursorShapeData.images.size() < 1) {
Debug::log(ERR, "BUG THIS: No fallback found for a cursor in setCursorFromName");
wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, m_pWLRXCursorMgr, name.c_str());
return;
}
}
Expand Down

0 comments on commit 8bdb7b5

Please sign in to comment.