Merge pull request #5232 from brian-brow/fix/hyprland-enable-bar-scroll-5229

fix(hyprland/workspaces): respect enable-bar-scroll config option
This commit is contained in:
Alexis Rouillard
2026-08-14 23:34:07 +02:00
committed by GitHub
+2 -2
View File
@@ -55,8 +55,8 @@ void Workspaces::init() {
if (m_scrollEventConnection_.connected()) {
m_scrollEventConnection_.disconnect();
}
bool hasScrollConfig = config_["on-scroll-up"].isString() || config_["on-scroll-down"].isString();
if (barScroll() || hasScrollConfig) {
if (barScroll()) {
auto& window = const_cast<Bar&>(m_bar).window;
window.add_events(Gdk::SCROLL_MASK | Gdk::SMOOTH_SCROLL_MASK);
m_scrollEventConnection_ =