Explorar el Código

Try not forcing activation when grabbing the mouse in fullscreen windows

Sam Lantinga hace 4 años
padre
commit
d406278513
Se han modificado 1 ficheros con 0 adiciones y 6 borrados
  1. 0 6
      src/video/windows/SDL_windowswindow.c

+ 0 - 6
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