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:
parent
722d537a91
commit
73b133d015
3 changed files with 48 additions and 11 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue