hyprland/workspaces: fixed urgent for special workspaces
This commit is contained in:
parent
c32d5e3883
commit
cc94278c4e
|
|
@ -863,7 +863,7 @@ void Workspaces::updateWorkspaceStates() {
|
||||||
for (auto &workspace : m_workspaces) {
|
for (auto &workspace : m_workspaces) {
|
||||||
workspace->setActive(workspace->name() == m_activeWorkspaceName ||
|
workspace->setActive(workspace->name() == m_activeWorkspaceName ||
|
||||||
workspace->name() == m_activeSpecialWorkspaceName);
|
workspace->name() == m_activeSpecialWorkspaceName);
|
||||||
if (workspace->name() == m_activeWorkspaceName && workspace->isUrgent()) {
|
if (workspace->isActive() && workspace->isUrgent()) {
|
||||||
workspace->setUrgent(false);
|
workspace->setUrgent(false);
|
||||||
}
|
}
|
||||||
workspace->setVisible(std::find(visibleWorkspaces.begin(), visibleWorkspaces.end(),
|
workspace->setVisible(std::find(visibleWorkspaces.begin(), visibleWorkspaces.end(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue