1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00

fix(xkeyboard): Only wrap click around the label

This commit is contained in:
Michael Carlberg 2016-12-16 11:34:35 +01:00
parent 519172b6ec
commit 698814d17f

View file

@ -99,10 +99,10 @@ namespace modules {
* Map format tags to content * Map format tags to content
*/ */
bool xkeyboard_module::build(builder* builder, const string& tag) const { bool xkeyboard_module::build(builder* builder, const string& tag) const {
builder->cmd(mousebtn::LEFT, EVENT_SWITCH);
if (tag == TAG_LABEL_LAYOUT) { if (tag == TAG_LABEL_LAYOUT) {
builder->cmd(mousebtn::LEFT, EVENT_SWITCH);
builder->node(m_layout); builder->node(m_layout);
builder->cmd_close();
} else if (tag == TAG_LABEL_INDICATOR) { } else if (tag == TAG_LABEL_INDICATOR) {
size_t n{0}; size_t n{0};
for (auto&& indicator : m_indicators) { for (auto&& indicator : m_indicators) {
@ -116,8 +116,6 @@ namespace modules {
return false; return false;
} }
builder->cmd_close();
return true; return true;
} }