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
1 changed files with 4 additions and 2 deletions

View File

@ -315,8 +315,10 @@ namespace modules {
int modes_n = 0;
for (auto&& mode : m_monitors[m_index]->modes) {
builder->node(mode);
modes_n++;
if (*mode.get()) {
builder->node(mode);
modes_n++;
}
}
return modes_n > 0;