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 ffa38530fa..1cd7a9c0ff 100644 --- a/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp +++ b/plugins/platforms/x11/standalone/effects_mouse_interception_x11_filter.cpp @@ -64,7 +64,13 @@ bool EffectsMouseInterceptionX11Filter::event(xcb_generic_event_t *event) const Qt::KeyboardModifiers modifiers = x11ToQtKeyboardModifiers(me->state); if (modifiers & Qt::AltModifier) { - angleDelta = angleDelta.transposed(); + int x = angleDelta.x(); + int y = angleDelta.y(); + + angleDelta.setX(y); + angleDelta.setY(x); + // After Qt > 5.14 simplify to + // angleDelta = angleDelta.transposed(); } if (angleDelta.y()) {