mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-26 09:41:57 -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);
|
result += CHyprCtl::getWindowData(w, format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (result.empty())
|
||||||
|
return "no open windows";
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user