summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-06-23 13:49:24 +0200
committerVaxry <vaxry@vaxry.net>2025-06-23 13:49:30 +0200
commit24e5f9974d56741ee22e125b78731503345dc510 (patch)
tree396a3a30b72c5602756c9ee5c56d64ae848a46ec /src/debug/HyprCtl.cpp
parentdd33128c2f127f39c30cca72addb1970b8936d07 (diff)
hyprctl: print no open windows instead of invalid request on empty clients
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 11f8b39a..d956f0bd 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -331,6 +331,9 @@ static std::string clientsRequest(eHyprCtlOutputFormat format, std::string reque
result += CHyprCtl::getWindowData(w, format);
}
+
+ if (result.empty())
+ return "no open windows";
}
return result;
}