Saved coordinates are no longer changed when the emulator is in full screen, fixes #3485.
This commit is contained in:
@@ -1709,18 +1709,20 @@ void
|
|||||||
MainWindow::on_actionRemember_size_and_position_triggered()
|
MainWindow::on_actionRemember_size_and_position_triggered()
|
||||||
{
|
{
|
||||||
window_remember ^= 1;
|
window_remember ^= 1;
|
||||||
window_w = ui->stackedWidget->width();
|
if (!video_fullscreen) {
|
||||||
window_h = ui->stackedWidget->height();
|
window_w = ui->stackedWidget->width();
|
||||||
if (!QApplication::platformName().contains("wayland")) {
|
window_h = ui->stackedWidget->height();
|
||||||
window_x = geometry().x();
|
if (!QApplication::platformName().contains("wayland")) {
|
||||||
window_y = geometry().y();
|
window_x = geometry().x();
|
||||||
}
|
window_y = geometry().y();
|
||||||
for (int i = 1; i < MONITORS_NUM; i++) {
|
}
|
||||||
if (window_remember && renderers[i]) {
|
for (int i = 1; i < MONITORS_NUM; i++) {
|
||||||
monitor_settings[i].mon_window_w = renderers[i]->geometry().width();
|
if (window_remember && renderers[i]) {
|
||||||
monitor_settings[i].mon_window_h = renderers[i]->geometry().height();
|
monitor_settings[i].mon_window_w = renderers[i]->geometry().width();
|
||||||
monitor_settings[i].mon_window_x = renderers[i]->geometry().x();
|
monitor_settings[i].mon_window_h = renderers[i]->geometry().height();
|
||||||
monitor_settings[i].mon_window_y = renderers[i]->geometry().y();
|
monitor_settings[i].mon_window_x = renderers[i]->geometry().x();
|
||||||
|
monitor_settings[i].mon_window_y = renderers[i]->geometry().y();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ui->actionRemember_size_and_position->setChecked(window_remember);
|
ui->actionRemember_size_and_position->setChecked(window_remember);
|
||||||
|
Reference in New Issue
Block a user