mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
hyprctl: print no open windows instead of invalid request on empty clients
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user