fix(bspwm): Do not print empty mode labels
This commit is contained in:
parent
d9707068f9
commit
fd44bcd8f6
@ -315,9 +315,11 @@ namespace modules {
|
|||||||
int modes_n = 0;
|
int modes_n = 0;
|
||||||
|
|
||||||
for (auto&& mode : m_monitors[m_index]->modes) {
|
for (auto&& mode : m_monitors[m_index]->modes) {
|
||||||
|
if (*mode.get()) {
|
||||||
builder->node(mode);
|
builder->node(mode);
|
||||||
modes_n++;
|
modes_n++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return modes_n > 0;
|
return modes_n > 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user