fix(xkeyboard): Only wrap click around the label
This commit is contained in:
parent
519172b6ec
commit
698814d17f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user