Skip to content

Commit

Permalink
fix: window-rewrite loading
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 8, 2024
1 parent 748fc80 commit b9632d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/hyprland/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Workspaces::Workspaces(const std::string &id, const Bar &bar, const Json::Value
gIPC = std::make_unique<IPC>();
}

init();
registerIpc();
init();
}

auto Workspaces::parseConfig(const Json::Value &config) -> void {
Expand Down Expand Up @@ -179,7 +179,10 @@ void Workspaces::doUpdate() {
}
}

auto clientsJson = gIPC->getSocket1JsonReply("clients");
for (auto &workspace : m_workspaces) {
workspace->initializeWindowMap(clientsJson);

// active
workspace->setActive(workspace->name() == m_activeWorkspaceName);
// disable urgency if workspace is active
Expand Down

0 comments on commit b9632d9

Please sign in to comment.