From 51feaa073015d4b35ae870072e03b78f16a17c4e Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Thu, 3 Jul 2025 23:21:42 +0300 Subject: [PATCH] Release mouse relative mode when focus changes during mouse tracking --- Source/Engine/Platform/SDL/SDLWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Engine/Platform/SDL/SDLWindow.cpp b/Source/Engine/Platform/SDL/SDLWindow.cpp index 9dc08fc0d..6b7914a86 100644 --- a/Source/Engine/Platform/SDL/SDLWindow.cpp +++ b/Source/Engine/Platform/SDL/SDLWindow.cpp @@ -863,6 +863,7 @@ void SDLWindow::EndTrackingMouse() } Input::Mouse->SetRelativeMode(false, this); + _restoreRelativeMode = false; } void SDLWindow::StartClippingCursor(const Rectangle& bounds)