hyprctl: Make setcursor better (support XCursor themes, give fail message) (#6097)

* add support for changing to X cursor themes

* use new hyprcursor abi for options

* remove unneeded struct
This commit is contained in:
Ikalco 2024-05-28 16:35:18 -05:00 committed by GitHub
parent 722d537a91
commit 73b133d015
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 48 additions and 11 deletions

View file

@ -1074,7 +1074,8 @@ std::string dispatchSetCursor(eHyprCtlOutputFormat format, std::string request)
if (size <= 0)
return "size not positive";
g_pCursorManager->changeTheme(theme, size);
if (!g_pCursorManager->changeTheme(theme, size))
return "failed to set cursor";
return "ok";
}