aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-22 19:16:35 +0200
committervaxerski <[email protected]>2022-08-22 19:16:35 +0200
commitfb0e81c18ee58a92dc109d6023677463d859523e (patch)
tree5142d49d01357a058c247b2e93091019664eb905 /hyprctl
parent359df96d53a835fc1156cc040190186cd7931ccd (diff)
downloadHyprland-fb0e81c18ee58a92dc109d6023677463d859523e.tar.gz
Hyprland-fb0e81c18ee58a92dc109d6023677463d859523e.zip
fix up hyprctl dispatch
Diffstat (limited to 'hyprctl')
-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);
}