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.
master
ameerj 2021-12-19 01:56:24 +07:00
parent 8e33cf1c2b
commit 39bb6851e4
1 changed files with 1 additions and 1 deletions

@ -2574,7 +2574,7 @@ void GMainWindow::ShowFullscreen() {
render_window->hide(); render_window->hide();
render_window->setWindowFlags(windowFlags() | Qt::FramelessWindowHint); 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(), render_window->setGeometry(screen_geometry.x(), screen_geometry.y(),
screen_geometry.width(), screen_geometry.height() + 1); screen_geometry.width(), screen_geometry.height() + 1);
render_window->raise(); render_window->raise();