diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/decorations/adwaita/qwaylandadwaitadecoration.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/decorations/adwaita/qwaylandadwaitadecoration.cpp b/src/plugins/decorations/adwaita/qwaylandadwaitadecoration.cpp index 01424b5db..1c0ca9477 100644 --- a/src/plugins/decorations/adwaita/qwaylandadwaitadecoration.cpp +++ b/src/plugins/decorations/adwaita/qwaylandadwaitadecoration.cpp @@ -613,19 +613,19 @@ void QWaylandAdwaitaDecoration::processMouseTop(QWaylandInputDevice *inputDevice if (local.x() <= margins().left()) { // top left bit #if QT_CONFIG(cursor) - waylandWindow()->setMouseCursor(inputDevice, Qt::SizeFDiagCursor); + waylandWindow()->applyCursor(inputDevice, Qt::SizeFDiagCursor); #endif startResize(inputDevice, Qt::TopEdge | Qt::LeftEdge, b); } else if (local.x() > surfaceRect.right() - margins().left()) { // top right bit #if QT_CONFIG(cursor) - waylandWindow()->setMouseCursor(inputDevice, Qt::SizeBDiagCursor); + waylandWindow()->applyCursor(inputDevice, Qt::SizeBDiagCursor); #endif startResize(inputDevice, Qt::TopEdge | Qt::RightEdge, b); } else { // top resize bit #if QT_CONFIG(cursor) - waylandWindow()->setMouseCursor(inputDevice, Qt::SizeVerCursor); + waylandWindow()->applyCursor(inputDevice, Qt::SizeVerCursor); #endif startResize(inputDevice, Qt::TopEdge, b); } @@ -671,19 +671,19 @@ void QWaylandAdwaitaDecoration::processMouseBottom(QWaylandInputDevice *inputDev if (local.x() <= margins().left()) { // bottom left bit #if QT_CONFIG(cursor) - waylandWindow()->setMouseCursor(inputDevice, Qt::SizeBDiagCursor); + waylandWindow()->applyCursor(inputDevice, Qt::SizeBDiagCursor); #endif startResize(inputDevice, Qt::BottomEdge | Qt::LeftEdge, b); } else if (local.x() > window()->width() + margins().right()) { // bottom right bit #if QT_CONFIG(cursor) - waylandWindow()->setMouseCursor(inputDevice, Qt::SizeFDiagCursor); + waylandWindow()->applyCursor(inputDevice, Qt::SizeFDiagCursor); #endif startResize(inputDevice, Qt::BottomEdge | Qt::RightEdge, b); } else { // bottom bit #if QT_CONFIG(cursor) - waylandWindow()->setMouseCursor(inputDevice, Qt::SizeVerCursor); + waylandWindow()->applyCursor(inputDevice, Qt::SizeVerCursor); #endif startResize(inputDevice, Qt::BottomEdge, b); } @@ -695,7 +695,7 @@ void QWaylandAdwaitaDecoration::processMouseLeft(QWaylandInputDevice *inputDevic Q_UNUSED(local) Q_UNUSED(mods) #if QT_CONFIG(cursor) - waylandWindow()->setMouseCursor(inputDevice, Qt::SizeHorCursor); + waylandWindow()->applyCursor(inputDevice, Qt::SizeHorCursor); #endif startResize(inputDevice, Qt::LeftEdge, b); } @@ -706,7 +706,7 @@ void QWaylandAdwaitaDecoration::processMouseRight(QWaylandInputDevice *inputDevi Q_UNUSED(local) Q_UNUSED(mods) #if QT_CONFIG(cursor) - waylandWindow()->setMouseCursor(inputDevice, Qt::SizeHorCursor); + waylandWindow()->applyCursor(inputDevice, Qt::SizeHorCursor); #endif startResize(inputDevice, Qt::RightEdge, b); } |