hyprctl: print no open windows instead of invalid request on empty clients

This commit is contained in:
Vaxry 2025-06-23 13:49:24 +02:00
parent dd33128c2f
commit 24e5f9974d
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -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;
}