From d40627851301aabf76a1d8acec7edb9ad675042d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Mar 2022 17:01:36 -0700 Subject: [PATCH] Try not forcing activation when grabbing the mouse in fullscreen windows --- src/video/windows/SDL_windowswindow.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c index 36bda16c4..ccf492025 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -858,12 +858,6 @@ void WIN_SetWindowMouseGrab(_THIS, SDL_Window * window, SDL_bool grabbed) { WIN_UpdateClipCursor(window); - - if (grabbed && - (window->flags & SDL_WINDOW_FULLSCREEN) && - (window->flags & SDL_WINDOW_SHOWN)) { - WIN_SetWindowPositionInternal(_this, window, SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOSIZE); - } } void