aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorTuur Vanhoutte <[email protected]>2024-08-02 21:49:47 +0200
committerGitHub <[email protected]>2024-08-02 21:49:47 +0200
commitbe2dfa36ef635add2d55c96f7616ec61b96e7bb1 (patch)
treea5cc14a6760a134cb1afb0bed02689b41531d39b /hyprctl
parent1fa4b7d79baaad47fde8e72221cd77f569fbfe35 (diff)
downloadHyprland-be2dfa36ef635add2d55c96f7616ec61b96e7bb1.tar.gz
Hyprland-be2dfa36ef635add2d55c96f7616ec61b96e7bb1.zip
hyprctl: increase hyprctl timeout to 5s to fix #6801 (#7152)
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index 45fe9142..336d479e 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -141,7 +141,7 @@ int rollingRead(const int socket) {
int request(std::string arg, int minArgs = 0, bool needRoll = false) {
const auto SERVERSOCKET = socket(AF_UNIX, SOCK_STREAM, 0);
- auto t = timeval{.tv_sec = 1, .tv_usec = 0};
+ auto t = timeval{.tv_sec = 5, .tv_usec = 0};
setsockopt(SERVERSOCKET, SOL_SOCKET, SO_RCVTIMEO, &t, sizeof(struct timeval));
const auto ARGS = std::count(arg.begin(), arg.end(), ' ');