fix(bspwm): Do not print empty mode labels

This commit is contained in:
Michael Carlberg 2016-11-11 11:04:53 +01:00
parent d9707068f9
commit fd44bcd8f6

View File

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