From 2a7d0ec4be28c2fe25548cbea45dc9a9e67d3f96 Mon Sep 17 00:00:00 2001 From: adityaruplaha Date: Sun, 1 Apr 2018 11:58:10 +0530 Subject: [PATCH] Fix the stuck in fullscreen bug. Don't save the UI/RenderWindow geometry if fullscreen was enabled. --- src/citra_qt/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index e2ce67abff..ec9b7ba588 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -1161,9 +1161,11 @@ void GMainWindow::closeEvent(QCloseEvent* event) { return; } - UISettings::values.geometry = saveGeometry(); + if (!ui.action_Fullscreen->isChecked()) { + UISettings::values.geometry = saveGeometry(); + UISettings::values.renderwindow_geometry = render_window->saveGeometry(); + } UISettings::values.state = saveState(); - UISettings::values.renderwindow_geometry = render_window->saveGeometry(); #if MICROPROFILE_ENABLED UISettings::values.microprofile_geometry = microProfileDialog->saveGeometry(); UISettings::values.microprofile_visible = microProfileDialog->isVisible();