Respect 'enable-scroll' setting for xworkspaces module

This commit is contained in:
Vlad Glagolev 2018-02-03 17:22:17 -05:00 committed by NBonaparte
parent 0dedb85721
commit a5b310872c

View File

@ -264,8 +264,10 @@ namespace modules {
output += module::get_output();
}
if (m_scroll) {
m_builder->cmd(mousebtn::SCROLL_DOWN, string{EVENT_PREFIX} + string{EVENT_SCROLL_DOWN});
m_builder->cmd(mousebtn::SCROLL_UP, string{EVENT_PREFIX} + string{EVENT_SCROLL_UP});
}
m_builder->append(output);