fix title not showing for special workspaces (seperate outputs: true)

pull/2965/head
Jannik 2024-02-24 15:00:39 +01:00
parent 601af3de81
commit 0cbb280de6
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ auto Window::getActiveWorkspace(const std::string& monitorName) -> Workspace {
spdlog::warn("Monitor not found: {}", monitorName);
return Workspace{-1, 0, "", ""};
}
const int id = (*monitor)["activeWorkspace"]["id"].asInt();
const int special_id = (*monitor)["specialWorkspace"]["id"].asInt();
const int id = special_id != 0 ? special_id : (*monitor)["activeWorkspace"]["id"].asInt();
const auto workspaces = gIPC->getSocket1JsonReply("workspaces");
assert(workspaces.isArray());