From 747a33a41e11330b18cf3ea43f556d3a2e9ded11 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:07:37 -0400 Subject: [PATCH] bootmanager: Create a dummy render widget This ensures that Qt positions the render window at the correct position on initializing the respective render backends. --- src/yuzu/bootmanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index bfae73b604..d72ca5acc8 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -567,6 +567,12 @@ std::unique_ptr GRenderWindow::CreateSharedCont bool GRenderWindow::InitRenderTarget() { ReleaseRenderTarget(); + { + // Create a dummy render widget so that Qt + // places the render window at the correct position. + const RenderWidget dummy_widget{this}; + } + first_frame = false; switch (Settings::values.renderer_backend.GetValue()) {