MCPcopy Create free account
hub / github.com/Alexays/Waybar / initializeWindowMap

Method initializeWindowMap

src/modules/hyprland/workspace.cpp:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void Workspace::initializeWindowMap(const Json::Value& clients_data) {
98 m_windowMap.clear();
99 for (auto client : clients_data) {
100 if (client["workspace"]["id"].asInt() == id()) {
101 insertWindow({client});
102 }
103 }
104}
105
106void Workspace::setActiveWindow(WindowAddress const& addr) {
107 std::optional<long> activeIdx;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected