fixed build after commit 6e356e20ad

This commit is contained in:
Ozkan Sezer 2021-10-12 23:50:02 +03:00
parent 6e356e20ad
commit 311671a029
1 changed files with 1 additions and 2 deletions

View File

@ -979,8 +979,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
being lost. This then causes a cascading failure where SDL_WINDOWEVENT_ENTER / SDL_WINDOWEVENT_LEAVE being lost. This then causes a cascading failure where SDL_WINDOWEVENT_ENTER / SDL_WINDOWEVENT_LEAVE
can stop firing permanently, due to the focus being in the wrong state and TrackMouseEvent never can stop firing permanently, due to the focus being in the wrong state and TrackMouseEvent never
resubscribing. */ resubscribing. */
const SDL_bool isCapture = ((data->window->flags & SDL_WINDOW_MOUSE_CAPTURE) != 0); if (!(data->window->flags & SDL_WINDOW_MOUSE_CAPTURE))
if (!isCapture)
SDL_SetMouseFocus(NULL); SDL_SetMouseFocus(NULL);
returnCode = 0; returnCode = 0;