hyprctl: print no open windows instead of invalid request on empty clients
This commit is contained in:
parent
dd33128c2f
commit
24e5f9974d
1 changed files with 3 additions and 0 deletions
|
|
@ -331,6 +331,9 @@ static std::string clientsRequest(eHyprCtlOutputFormat format, std::string reque
|
||||||
|
|
||||||
result += CHyprCtl::getWindowData(w, format);
|
result += CHyprCtl::getWindowData(w, format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (result.empty())
|
||||||
|
return "no open windows";
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue