Set the cursor when the pointer enters the window

Change-Id: I1ff9928bc5d9d1d80ce07561243eeec89c406e36
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
Giulio Camuffo 2017-02-04 11:33:56 +01:00
parent 6698deaa46
commit c9a156f29e

View File

@ -377,7 +377,7 @@ void QWaylandInputDevice::setCursor(Qt::CursorShape newShape, QWaylandScreen *sc
void QWaylandInputDevice::setCursor(const QCursor &cursor, QWaylandScreen *screen) void QWaylandInputDevice::setCursor(const QCursor &cursor, QWaylandScreen *screen)
{ {
if (cursor.shape() != Qt::BitmapCursor && cursor.shape() == mPointer->mCursorShape) if (mPointer->mCursorSerial >= mPointer->mEnterSerial && (cursor.shape() != Qt::BitmapCursor && cursor.shape() == mPointer->mCursorShape))
return; return;
mPointer->mCursorShape = cursor.shape(); mPointer->mCursorShape = cursor.shape();