parent
389bae2669
commit
f581095cb7
@ -204,13 +204,11 @@ namespace modules {
|
|||||||
void xworkspaces_module::rebuild_desktop_states() {
|
void xworkspaces_module::rebuild_desktop_states() {
|
||||||
for (auto&& v : m_viewports) {
|
for (auto&& v : m_viewports) {
|
||||||
for (auto&& d : v->desktops) {
|
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;
|
d->state = desktop_state::ACTIVE;
|
||||||
} else if (d->state == desktop_state::ACTIVE) {
|
} else {
|
||||||
d->state = desktop_state::EMPTY;
|
d->state = desktop_state::EMPTY;
|
||||||
} else if (d->label) {
|
}
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
d->label = m_labels.at(d->state)->clone();
|
d->label = m_labels.at(d->state)->clone();
|
||||||
d->label->reset_tokens();
|
d->label->reset_tokens();
|
||||||
|
Loading…
Reference in New Issue
Block a user