window: consistently use normal keyboard modifiers for tiling

A bad rebase in commit 43e5f17547 inadvertedly
reverted half of the fix from 1f1c54ca6c. As a
result, custom tiling would appear broken again for keyboard layouts where caps
lock is achieved by pressing both shift keys at the same time. Reapply the half
of the fix that went missing.
This commit is contained in:
Alois Wohlschlager 2024-05-25 13:43:39 +02:00 committed by Vlad Zahorodnii
parent 862dae455a
commit ae376766ef

View file

@ -1413,7 +1413,7 @@ void Window::updateInteractiveMoveResize(const QPointF &global)
}
if (!isRequestedFullScreen()) {
if (input()->modifiersRelevantForGlobalShortcuts() & Qt::ShiftModifier) {
if (input()->keyboardModifiers() & Qt::ShiftModifier) {
resetQuickTilingMaximizationZones();
const auto &r = quickTileGeometry(QuickTileFlag::Custom, global);
if (r.isEmpty()) {