1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2025-02-17 15:55:20 -05:00
This commit is contained in:
rps 2017-05-16 22:34:03 -05:00 committed by Michael Carlberg
parent 389bae2669
commit f581095cb7

View file

@ -204,12 +204,10 @@ namespace modules {
void xworkspaces_module::rebuild_desktop_states() {
for (auto&& v : m_viewports) {
for (auto&& d : v->desktops) {
if (d->index == m_current_desktop && d->state != desktop_state::ACTIVE) {
if (d->index == m_current_desktop) {
d->state = desktop_state::ACTIVE;
} else if (d->state == desktop_state::ACTIVE) {
} else {
d->state = desktop_state::EMPTY;
} else if (d->label) {
continue;
}
d->label = m_labels.at(d->state)->clone();