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:
parent
6698deaa46
commit
c9a156f29e
@ -377,7 +377,7 @@ void QWaylandInputDevice::setCursor(Qt::CursorShape newShape, QWaylandScreen *sc
|
||||
|
||||
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;
|
||||
|
||||
mPointer->mCursorShape = cursor.shape();
|
||||
|
Loading…
x
Reference in New Issue
Block a user