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

View File

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