Saved coordinates are no longer changed when the emulator is in full screen, fixes #3485.

This commit is contained in:
OBattler
2023-07-27 01:26:24 +02:00
parent 937cadf054
commit 0c3db4da43

View File

@@ -1709,6 +1709,7 @@ void
MainWindow::on_actionRemember_size_and_position_triggered()
{
window_remember ^= 1;
if (!video_fullscreen) {
window_w = ui->stackedWidget->width();
window_h = ui->stackedWidget->height();
if (!QApplication::platformName().contains("wayland")) {
@@ -1723,6 +1724,7 @@ MainWindow::on_actionRemember_size_and_position_triggered()
monitor_settings[i].mon_window_y = renderers[i]->geometry().y();
}
}
}
ui->actionRemember_size_and_position->setChecked(window_remember);
}