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;