mirror of https://github.com/encounter/SDL.git
Try not forcing activation when grabbing the mouse in fullscreen windows
This commit is contained in:
parent
4e784fce43
commit
d406278513
|
@ -858,12 +858,6 @@ void
|
||||||
WIN_SetWindowMouseGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
|
WIN_SetWindowMouseGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
|
||||||
{
|
{
|
||||||
WIN_UpdateClipCursor(window);
|
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
|
void
|
||||||
|
|
Loading…
Reference in New Issue