From c22546868d75e94cd1a31b89daddd002555f1919 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 15 Nov 2019 14:10:03 +0000 Subject: [PATCH] [effects] fix mouse wheel detection --- .../x11/standalone/effects_mouse_interception_x11_filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp b/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp index 1cd7a9c0ff..961662d754 100644 --- a/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp +++ b/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp @@ -39,7 +39,7 @@ bool EffectsMouseInterceptionX11Filter::event(xcb_generic_event_t *event) if (eventType == XCB_BUTTON_PRESS || eventType == XCB_BUTTON_RELEASE) { auto *me = reinterpret_cast(event); if (m_window == me->event) { - const bool isWheel = me->detail >= 4 || me->detail <= 7; + const bool isWheel = me->detail >= 4 && me->detail <= 7; if (isWheel) { if (eventType != XCB_BUTTON_PRESS) { return false;