window: use the correct output when electric border quick tiling

BUG: 487844
This commit is contained in:
Xaver Hugl 2024-06-06 16:53:15 +02:00
parent 6166060f9b
commit 0cd6f5cd06

View file

@ -3577,7 +3577,7 @@ void Window::setQuickTileMode(QuickTileMode mode, bool keyboard)
// Don't go into setTileMode as custom tiles don't go trough configure events
return;
} else {
Tile *newTile = workspace()->tileManager(moveResizeOutput())->quickTile(m_requestedQuickTileMode);
Tile *newTile = workspace()->tileManager(workspace()->outputAt(whichScreen))->quickTile(m_requestedQuickTileMode);
if (newTile) {
moveResize(newTile->absoluteGeometry());
} else if (tile()) {