Commit cb702215 authored by David Edmundson's avatar David Edmundson
Browse files

[effects] Fix build on old Qt

parent aedc9e62
...@@ -64,7 +64,13 @@ bool EffectsMouseInterceptionX11Filter::event(xcb_generic_event_t *event) ...@@ -64,7 +64,13 @@ bool EffectsMouseInterceptionX11Filter::event(xcb_generic_event_t *event)
const Qt::KeyboardModifiers modifiers = x11ToQtKeyboardModifiers(me->state); const Qt::KeyboardModifiers modifiers = x11ToQtKeyboardModifiers(me->state);
if (modifiers & Qt::AltModifier) { 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()) { if (angleDelta.y()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment