From 3348b747a5f2753aa8d0bed32784c1ae74e76353 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 11 Jul 2022 20:52:04 +0600 Subject: [PATCH] Restore code to properly restore coordinates --- src/qt/qt_mainwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 1012084b7..31ab4886b 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -642,6 +642,13 @@ void MainWindow::showEvent(QShowEvent *event) { monitors[0].mon_scrnsz_x = fixed_size_x; monitors[0].mon_scrnsz_y = fixed_size_y; } + if (window_remember && vid_resize == 1) { + ui->stackedWidget->setFixedSize(window_w, window_h); + adjustSize(); + ui->stackedWidget->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); + monitors[0].mon_scrnsz_x = window_w; + monitors[0].mon_scrnsz_y = window_h; + } } void MainWindow::on_actionKeyboard_requires_capture_triggered() {