From 24e5f9974d56741ee22e125b78731503345dc510 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 23 Jun 2025 13:49:24 +0200 Subject: [PATCH] hyprctl: print no open windows instead of invalid request on empty clients --- src/debug/HyprCtl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }