Fix unused variable warnings

Thanks CI system for reporting them.
This commit is contained in:
Martin Gräßlin 2015-03-25 13:46:29 +01:00
parent 49b926e249
commit 41f5d246f6
2 changed files with 3 additions and 1 deletions

View file

@ -930,7 +930,6 @@ void TestWaylandSeat::testTouch()
QSignalSpy touchCreatedSpy(m_seatInterface, SIGNAL(touchCreated(KWayland::Server::TouchInterface*)));
QVERIFY(touchCreatedSpy.isValid());
Touch *touch = m_seat->createTouch(m_seat);
const Touch &ctouch = *touch;
QVERIFY(touch->isValid());
QVERIFY(touchCreatedSpy.wait());
QVERIFY(m_seatInterface->focusedTouch());
@ -1078,6 +1077,7 @@ void TestWaylandSeat::testTouch()
QVERIFY(!m_seatInterface->isTouchSequence());
// try cancel
m_seatInterface->setFocusedTouchSurface(serverSurface, QPointF(15, 26));
m_seatInterface->setTimestamp(7);
QCOMPARE(m_seatInterface->touchDown(QPointF(15, 26)), 0);
m_seatInterface->touchFrame();
@ -1090,6 +1090,7 @@ void TestWaylandSeat::testTouch()
QCOMPARE(pointAddedSpy.count(), 2);
QCOMPARE(pointMovedSpy.count(), 1);
QCOMPARE(pointRemovedSpy.count(), 3);
QCOMPARE(touch->sequence().first()->position(), QPointF(0, 0));
}
QTEST_GUILESS_MAIN(TestWaylandSeat)

View file

@ -820,6 +820,7 @@ void SeatInterface::setFocusedTouchSurface(SurfaceInterface *surface, const QPoi
}
d->touchInterface.focus = Private::Touch::Focus();
d->touchInterface.focus.surface = surface;
d->touchInterface.focus.offset = surfacePosition;
TouchInterface *t = d->touchForSurface(surface);
d->touchInterface.focus.touch = t;
if (d->touchInterface.focus.surface) {