Skip to content

Commit

Permalink
Bradient backport: Use 'Size' instead of 'Split' cursors for resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
grulja committed Jan 26, 2024
1 parent bb7b246 commit a645d53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qadwaitadecorations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ void QAdwaitaDecorations::processMouseTop(QWaylandInputDevice *inputDevice, cons
} else {
// top resize bit
#if QT_CONFIG(cursor)
waylandWindow()->setMouseCursor(inputDevice, Qt::SplitVCursor);
waylandWindow()->setMouseCursor(inputDevice, Qt::SizeVerCursor);
#endif
startResize(inputDevice, Qt::TopEdge, b);
}
Expand Down Expand Up @@ -817,7 +817,7 @@ void QAdwaitaDecorations::processMouseBottom(QWaylandInputDevice *inputDevice, c
} else {
// bottom bit
#if QT_CONFIG(cursor)
waylandWindow()->setMouseCursor(inputDevice, Qt::SplitVCursor);
waylandWindow()->setMouseCursor(inputDevice, Qt::SizeVerCursor);
#endif
startResize(inputDevice, Qt::BottomEdge, b);
}
Expand All @@ -829,7 +829,7 @@ void QAdwaitaDecorations::processMouseLeft(QWaylandInputDevice *inputDevice, con
Q_UNUSED(local)
Q_UNUSED(mods)
#if QT_CONFIG(cursor)
waylandWindow()->setMouseCursor(inputDevice, Qt::SplitHCursor);
waylandWindow()->setMouseCursor(inputDevice, Qt::SizeHorCursor);
#endif
startResize(inputDevice, Qt::LeftEdge, b);
}
Expand All @@ -840,7 +840,7 @@ void QAdwaitaDecorations::processMouseRight(QWaylandInputDevice *inputDevice, co
Q_UNUSED(local)
Q_UNUSED(mods)
#if QT_CONFIG(cursor)
waylandWindow()->setMouseCursor(inputDevice, Qt::SplitHCursor);
waylandWindow()->setMouseCursor(inputDevice, Qt::SizeHorCursor);
#endif
startResize(inputDevice, Qt::RightEdge, b);
}
Expand Down

0 comments on commit a645d53

Please sign in to comment.