diff --git a/pcsx2/ImGui/ImGuiManager.cpp b/pcsx2/ImGui/ImGuiManager.cpp index b548811b19..3b81450b57 100644 --- a/pcsx2/ImGui/ImGuiManager.cpp +++ b/pcsx2/ImGui/ImGuiManager.cpp @@ -133,7 +133,7 @@ bool ImGuiManager::Initialize() s_global_scale = std::max(0.5f, g_gs_device->GetWindowScale() * (GSConfig.OsdScale / 100.0f)); s_scale_changed = false; - ImGui::CreateContext(); + ImGuiContext& g = *ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); io.IniFilename = nullptr; @@ -141,6 +141,10 @@ bool ImGuiManager::Initialize() io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard | ImGuiConfigFlags_NavEnableGamepad; io.KeyRepeatDelay = 0.5f; + g.ConfigNavWindowingKeyNext = ImGuiKey_None; + g.ConfigNavWindowingKeyPrev = ImGuiKey_None; + g.ConfigNavWindowingWithGamepad = false; + s_window_width = static_cast(g_gs_device->GetWindowWidth()); s_window_height = static_cast(g_gs_device->GetWindowHeight()); io.DisplayFramebufferScale = ImVec2(1, 1); // We already scale things ourselves, this would double-apply scaling