From cb7022150d746ceb227e1a5fcb1ace7c96fca618 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 14 Nov 2019 14:19:40 +0000 Subject: [PATCH] [effects] Fix build on old Qt --- .../standalone/effects_mouse_interception_x11_filter.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 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 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()) {