diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-20 23:59:31 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-20 23:59:31 +0100 |
| commit | 510db64860fa307e33db5fdb843c6cc5a428b5a4 (patch) | |
| tree | 67ba9f40af6e260747af708345f3045d82b87e74 /hyprctl/main.cpp | |
| parent | b15803510c67b7b89090c99f03781d9052c959f5 (diff) | |
hyprctl: allow spaces in cursor themes
Diffstat (limited to 'hyprctl/main.cpp')
| -rw-r--r-- | hyprctl/main.cpp | 5 |
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; |
