UI: Never move the window to top left on resize, fixes #6329.

This commit is contained in:
Miran Grča
2025-10-12 16:16:01 +02:00
committed by GitHub
parent 3f61475d9a
commit 93cb9e9c9d

View File

@@ -1021,6 +1021,7 @@ void MainWindow::updateShortcuts()
void
MainWindow::resizeEvent(QResizeEvent *event)
{
#ifdef MOVE_WINDOW
//qDebug() << pos().x() + event->size().width();
//qDebug() << pos().y() + event->size().height();
if (vid_resize == 1 || video_fullscreen)
@@ -1040,6 +1041,7 @@ MainWindow::resizeEvent(QResizeEvent *event)
if (newY < 1) newY = 1;
}
move(newX, newY);
#endif
}
void