mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 15:41:58 -07:00
Merge pull request #474 from yavko/patch-1
Change monitor active to json bool
This commit is contained in:
@@ -35,7 +35,7 @@ R"#({
|
|||||||
"reserved": [%i, %i, %i, %i],
|
"reserved": [%i, %i, %i, %i],
|
||||||
"scale": %.2f,
|
"scale": %.2f,
|
||||||
"transform": %i,
|
"transform": %i,
|
||||||
"active": "%s"
|
"active": %s
|
||||||
},)#",
|
},)#",
|
||||||
m->ID,
|
m->ID,
|
||||||
escapeJSONStrings(m->szName).c_str(),
|
escapeJSONStrings(m->szName).c_str(),
|
||||||
@@ -46,7 +46,7 @@ R"#({
|
|||||||
(int)m->vecReservedTopLeft.x, (int)m->vecReservedTopLeft.y, (int)m->vecReservedBottomRight.x, (int)m->vecReservedBottomRight.y,
|
(int)m->vecReservedTopLeft.x, (int)m->vecReservedTopLeft.y, (int)m->vecReservedBottomRight.x, (int)m->vecReservedBottomRight.y,
|
||||||
m->scale,
|
m->scale,
|
||||||
(int)m->transform,
|
(int)m->transform,
|
||||||
(m.get() == g_pCompositor->m_pLastMonitor ? "yes" : "no")
|
(m.get() == g_pCompositor->m_pLastMonitor ? "true" : "false")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -667,4 +667,4 @@ void HyprCtl::startHyprCtlSocket() {
|
|||||||
|
|
||||||
close(SOCKET);
|
close(SOCKET);
|
||||||
}).detach();
|
}).detach();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user