aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/debug
diff options
context:
space:
mode:
authorIkalco <[email protected]>2024-05-28 16:35:18 -0500
committerGitHub <[email protected]>2024-05-28 23:35:18 +0200
commit73b133d0155d376f35833cd992f821399a42f76b (patch)
tree0881ca175188e9855fcd1ee2bfd89ad8bfb59547 /src/debug
parent722d537a91a9beacf9c12fc1317ff1fbe10ffac5 (diff)
downloadHyprland-73b133d0155d376f35833cd992f821399a42f76b.tar.gz
Hyprland-73b133d0155d376f35833cd992f821399a42f76b.zip
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
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/HyprCtl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 795272cc..d1975279 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -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";
}