Fixed Linux build

This commit is contained in:
Sam Lantinga 2021-11-08 22:29:02 -08:00
parent 881f747d5c
commit 18e69827aa
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ X11_XfixesIsInitialized()
void void
X11_SetWindowMouseRect(_THIS, SDL_Window * window) X11_SetWindowMouseRect(_THIS, SDL_Window * window)
{ {
if (SDL_RectEmpty(window->mouse_rect)) { if (SDL_RectEmpty(&window->mouse_rect)) {
X11_ConfineCursorWithFlags(_this, window, NULL, 0); X11_ConfineCursorWithFlags(_this, window, NULL, 0);
} else { } else {
if (window->flags & SDL_WINDOW_INPUT_FOCUS) { if (window->flags & SDL_WINDOW_INPUT_FOCUS) {