From 2127b1bf3742f7207e8897047044bccf8af5aa07 Mon Sep 17 00:00:00 2001 From: squidbus <175574877+squidbus@users.noreply.github.com> Date: Sat, 28 Nov 2026 03:36:50 -0800 Subject: [PATCH] imgui: Disable input event trickling --- UnleashedRecomp/gpu/video.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index a9edd0b39..7b292bf51 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -1367,6 +1367,9 @@ static void CreateImGuiBackend() io.IniFilename = nullptr; io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange; + // We scale and offset ImGui mouse events to adjust for viewports that differ from the window size. + // With ImGui's default trickle behavior, we may scale the same event multiple times, so disable it. + io.ConfigInputTrickleEventQueue = false; #ifdef ENABLE_IM_FONT_ATLAS_SNAPSHOT IM_DELETE(io.Fonts);