mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 04:45:59 +01:00
fix trailing comma in hyprctl activewindow
This commit is contained in:
parent
2cbb10d850
commit
5a00f0c657
1 changed files with 7 additions and 1 deletions
|
@ -182,7 +182,13 @@ std::string activeWindowRequest(HyprCtl::eHyprCtlOutputFormat format) {
|
||||||
|
|
||||||
if (!g_pCompositor->windowValidMapped(PWINDOW))
|
if (!g_pCompositor->windowValidMapped(PWINDOW))
|
||||||
return format == HyprCtl::FORMAT_JSON ? "{}" : "Invalid";
|
return format == HyprCtl::FORMAT_JSON ? "{}" : "Invalid";
|
||||||
return getWindowData(PWINDOW, format);
|
|
||||||
|
auto result = getWindowData(PWINDOW, format);
|
||||||
|
|
||||||
|
if (format == HyprCtl::FORMAT_JSON)
|
||||||
|
result.pop_back();
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string layersRequest(HyprCtl::eHyprCtlOutputFormat format) {
|
std::string layersRequest(HyprCtl::eHyprCtlOutputFormat format) {
|
||||||
|
|
Loading…
Reference in a new issue