docs: Note that Windows might block SDL_PollEvent() on window drag.

Reference Issue #13435.
This commit is contained in:
unknown
2025-10-09 13:41:49 -04:00
parent ef1d4ed1bf
commit 84981ead73

View File

@@ -1260,6 +1260,13 @@ extern SDL_DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType)
* }
* ```
*
* Note that Windows (and possibly other platforms) has a quirk about how it
* handles events while dragging/resizing a window, which can cause this
* function to block for significant amounts of time. Technical explanations
* and solutions are discussed on the wiki:
*
* https://wiki.libsdl.org/SDL3/AppFreezeDuringDrag
*
* \param event the SDL_Event structure to be filled with the next event from
* the queue, or NULL.
* \returns true if this got an event or false if there are none available.