mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-01-08 18:01:36 +03:00
fix trailing comma in hyprctl activewindow
This commit is contained in:
parent
2cbb10d850
commit
5a00f0c657
@ -182,7 +182,13 @@ std::string activeWindowRequest(HyprCtl::eHyprCtlOutputFormat format) {
|
||||
|
||||
if (!g_pCompositor->windowValidMapped(PWINDOW))
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user