Commit 62cf7e88 authored by David Edmundson's avatar David Edmundson Committed by Nate Graham
Browse files

Only calculate surfaceInputTransformation when we have a surface

parent 1c25c710
Pipeline #207240 passed with stage
in 15 minutes and 28 seconds
......@@ -527,10 +527,10 @@ void SeatInterface::setDragTarget(AbstractDropHandler *dropTarget,
notifyTouchMotion(d->globalTouch.ids.first(), globalPosition);
}
QMatrix4x4 surfaceInputTransformation = inputTransformation;
surfaceInputTransformation.scale(surface->scaleOverride());
if (d->drag.target) {
QMatrix4x4 surfaceInputTransformation = inputTransformation;
surfaceInputTransformation.scale(surface->scaleOverride());
d->drag.surface = surface;
d->drag.transformation = surfaceInputTransformation;
d->drag.target->updateDragTarget(surface, serial);
......
Supports Markdown
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