Merge branch 'master' into stdin

This commit is contained in:
Raphael Robatsch 2021-10-29 23:27:17 +02:00
commit 1c538a003d
3 changed files with 6 additions and 5 deletions

View File

@ -115,7 +115,7 @@ void Bar::setTag(int tag, int state, int numClients, int focusedClient)
t.focusedClient = focusedClient;
}
void Bar::setSelected(bool selected) { _selected = selected; }
void Bar::setLayout(const std::string &layout) { _layoutCmp.setText(layout); }
void Bar::setLayout(const std::string& layout) { _layoutCmp.setText(layout); }
void Bar::setTitle(const std::string& title) { _titleCmp.setText(title); }
void Bar::setStatus(const std::string& status) { _statusCmp.setText(status); }
@ -231,7 +231,8 @@ void Bar::setColorScheme(const ColorScheme& scheme, bool invert)
}
static void setColor(cairo_t* painter, const Color& color)
{
cairo_set_source_rgba(painter, color.r/255.0, color.g/255.0, color.b/255.0, color.a/255.0);
cairo_set_source_rgba(painter,
color.r/255.0, color.g/255.0, color.b/255.0, color.a/255.0);
}
void Bar::beginFg() { setColor(_painter, _colorScheme.fg); }
void Bar::beginBg() { setColor(_painter, _colorScheme.bg); }

View File

@ -34,7 +34,7 @@ public:
resetBuffer();
}
}
private:
private:
template<typename Consumer>
void dispatchLines(const Consumer& consumer)
{