From e75ddb878ab11f2a32fb5bb0941a8fdb3a04df6a Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Sat, 5 Jul 2025 20:03:45 +0100 Subject: [PATCH] FSUI: Disable the nav window using context config options --- pcsx2/ImGui/ImGuiManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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