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