From 113d851cea9b0c1958bc3492daaa18a6e90850d9 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Thu, 3 Apr 2025 00:55:27 +0300 Subject: [PATCH] Fix cursor escaping constrained area when initially outside on Windows --- Source/Engine/Platform/SDL/SDLWindow.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Engine/Platform/SDL/SDLWindow.cpp b/Source/Engine/Platform/SDL/SDLWindow.cpp index 68e652d85..1df680de4 100644 --- a/Source/Engine/Platform/SDL/SDLWindow.cpp +++ b/Source/Engine/Platform/SDL/SDLWindow.cpp @@ -819,10 +819,8 @@ void SDLWindow::StartClippingCursor(const Rectangle& bounds) if (!IsFocused()) return; -#if PLATFORM_LINUX // The cursor is not fully constrained when positioned outside the clip region SetMousePosition(bounds.GetCenter()); -#endif _isClippingCursor = true; SDL_Rect rect{ (int)bounds.GetX(), (int)bounds.GetY(), (int)bounds.GetWidth(), (int)bounds.GetHeight() };