mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
fix(i3): Workspace state when visible on unfocused monitor
This commit is contained in:
parent
2912f0f3f2
commit
fb709aeab3
1 changed files with 3 additions and 3 deletions
|
@ -128,10 +128,10 @@ namespace modules {
|
|||
ws_state = state::FOCUSED;
|
||||
} else if (ws->urgent) {
|
||||
ws_state = state::URGENT;
|
||||
} else if (!ws->visible || (ws->visible && ws->output != m_bar.monitor->name)) {
|
||||
ws_state = state::UNFOCUSED;
|
||||
} else {
|
||||
} else if (ws->visible) {
|
||||
ws_state = state::VISIBLE;
|
||||
} else {
|
||||
ws_state = state::UNFOCUSED;
|
||||
}
|
||||
|
||||
string ws_name{ws->name};
|
||||
|
|
Loading…
Reference in a new issue