From 1ac5c23fd2d3e775b7b762812fe9054abf62e099 Mon Sep 17 00:00:00 2001 From: NBonaparte Date: Sat, 10 Feb 2018 17:56:11 -0800 Subject: [PATCH] fix(xbacklight): respect enable-scroll --- src/modules/xbacklight.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/xbacklight.cpp b/src/modules/xbacklight.cpp index 8d819a87..5debbe45 100644 --- a/src/modules/xbacklight.cpp +++ b/src/modules/xbacklight.cpp @@ -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);