fix(xbacklight): respect enable-scroll

This commit is contained in:
NBonaparte 2018-02-10 17:56:11 -08:00 committed by Patrick Ziegler
parent 989bc00082
commit 1ac5c23fd2

View File

@ -120,8 +120,10 @@ namespace modules {
// with the cmd handlers
string output{module::get_output()};
m_builder->cmd(mousebtn::SCROLL_UP, EVENT_SCROLLUP);
m_builder->cmd(mousebtn::SCROLL_DOWN, EVENT_SCROLLDOWN);
if (m_scroll) {
m_builder->cmd(mousebtn::SCROLL_UP, EVENT_SCROLLUP);
m_builder->cmd(mousebtn::SCROLL_DOWN, EVENT_SCROLLDOWN);
}
m_builder->append(output);