window: use normal keyboard modifiers for triggering custom tiling
Modifiers for global shortcuts are handled differently from normal shortcuts, because they need to consider modifiers that are consumed by xkb for keyboard layout transitions and similar. This restriction is not relevant for custom tiling. BUG: 465858
This commit is contained in:
parent
a917d1885e
commit
1f1c54ca6c
1 changed files with 2 additions and 2 deletions
|
@ -1286,7 +1286,7 @@ void Window::finishInteractiveMoveResize(bool cancel)
|
|||
if (isElectricBorderMaximizing()) {
|
||||
setQuickTileMode(electricBorderMode());
|
||||
setElectricBorderMaximizing(false);
|
||||
} else if (wasMove && (input()->modifiersRelevantForGlobalShortcuts() & Qt::ShiftModifier)) {
|
||||
} else if (wasMove && (input()->keyboardModifiers() & Qt::ShiftModifier)) {
|
||||
setQuickTileMode(QuickTileFlag::Custom);
|
||||
}
|
||||
setElectricBorderMode(QuickTileMode(QuickTileFlag::None));
|
||||
|
@ -1397,7 +1397,7 @@ void Window::handleInteractiveMoveResize(const QPointF &local, const QPointF &gl
|
|||
handleInteractiveMoveResize(local.x(), local.y(), global.x(), global.y()); // fix position
|
||||
}
|
||||
|
||||
if (input()->modifiersRelevantForGlobalShortcuts() & Qt::ShiftModifier) {
|
||||
if (input()->keyboardModifiers() & Qt::ShiftModifier) {
|
||||
resetQuickTilingMaximizationZones();
|
||||
const auto &r = quickTileGeometry(QuickTileFlag::Custom, global);
|
||||
if (r.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue