fix(bspwm): Do not print empty mode labels
This commit is contained in:
parent
d9707068f9
commit
fd44bcd8f6
@ -315,8 +315,10 @@ 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) {
|
||||||
builder->node(mode);
|
if (*mode.get()) {
|
||||||
modes_n++;
|
builder->node(mode);
|
||||||
|
modes_n++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return modes_n > 0;
|
return modes_n > 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user