Fix -Wunused-variable

This commit is contained in:
Vlad Zahorodnii 2021-03-25 17:29:51 +02:00
parent 1fec9ed4ae
commit b27150387c

View file

@ -179,7 +179,6 @@ void SeatInterfacePrivate::registerDataDevice(DataDeviceInterface *dataDevice)
QObject::connect(dataDevice, &DataDeviceInterface::dragStarted, q, QObject::connect(dataDevice, &DataDeviceInterface::dragStarted, q,
[this, dataDevice] { [this, dataDevice] {
const auto dragSerial = dataDevice->dragImplicitGrabSerial(); const auto dragSerial = dataDevice->dragImplicitGrabSerial();
auto *dragSurface = dataDevice->origin();
if (q->hasImplicitPointerGrab(dragSerial)) { if (q->hasImplicitPointerGrab(dragSerial)) {
drag.mode = Drag::Mode::Pointer; drag.mode = Drag::Mode::Pointer;
drag.transformation = globalPointer.focus.transformation; drag.transformation = globalPointer.focus.transformation;