summaryrefslogtreecommitdiff
path: root/hyprctl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyprctl/main.cpp')
-rw-r--r--hyprctl/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index 87c332fb..1639bb67 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -227,7 +227,10 @@ int setcursorRequest(int argc, char** argv) {
return 1;
}
- std::string rq = "setcursor " + std::string(argv[2]) + " " + std::string(argv[3]);
+ std::string rq = "setcursor ";
+ for (size_t i = 2; i < argc; ++i)
+ rq += std::string(argv[i]) + " ";
+ rq.pop_back();
request(rq);
return 0;