1
0
Fork 0
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:
Michael Carlberg 2017-01-27 03:03:57 +01:00
parent 2912f0f3f2
commit fb709aeab3

View file

@ -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};