Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed relative mode mouse events stopping if you click on the title bar
  • Loading branch information
slouken committed Feb 12, 2020
1 parent 6ec14b7 commit 6fe6946
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/windows/SDL_windowsevents.c
Expand Up @@ -542,6 +542,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
SDL_SendMouseMotion(data->window, 0, 0, center_x, center_y);
}
}
} else {
/* We still need to update focus */
SDL_SetMouseFocus(data->window);
}
}
/* don't break here, fall through to check the wParam like the button presses */
Expand Down

0 comments on commit 6fe6946

Please sign in to comment.