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 820e9fe9..345c2c74 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -152,7 +152,10 @@ void dispatchRequest(int argc, char** argv) {
return;
}
- std::string rq = "/dispatch " + std::string(argv[2]) + " " + std::string(argv[3]);
+ std::string rq = "/dispatch";
+
+ for(int i = 2; i < argc; i++)
+ rq += " " + std::string(argv[i]);
request(rq);
}