mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 13:03:48 -07:00
fix trailing comma in hyprctl activewindow
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user