From 39bb6851e42b7cf71c23819009665b10194e12a1 Mon Sep 17 00:00:00 2001 From: ameerj <52414509+ameerj@users.noreply.github.com> Date: Sun, 19 Dec 2021 01:56:24 -0500 Subject: [PATCH] main: Make render window borderless fullscreen toggle on the monitor it resides in Toggling borderless fullscreen on the separate render window made it fullscreen on the monitor which the main yuzu window resided in. This change allows the render window to go fullscreen on the monitor it resides in, independent of the main window location. --- src/yuzu/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index b7bb433480..2daf191b31 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -2574,7 +2574,7 @@ void GMainWindow::ShowFullscreen() { render_window->hide(); render_window->setWindowFlags(windowFlags() | Qt::FramelessWindowHint); - const auto screen_geometry = QApplication::desktop()->screenGeometry(this); + const auto screen_geometry = QApplication::desktop()->screenGeometry(render_window); render_window->setGeometry(screen_geometry.x(), screen_geometry.y(), screen_geometry.width(), screen_geometry.height() + 1); render_window->raise();