1
0
Fork 0
forked from suyu/suyu

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.
This commit is contained in:
ameerj 2021-12-19 01:56:24 -05:00
parent 8e33cf1c2b
commit 39bb6851e4

View file

@ -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();