mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-26 19:45:38 +01:00
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:
parent
8e33cf1c2b
commit
39bb6851e4
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user