This is related to the ongoing thread here but is a different and higher-level question, so I didn’t want to hijack that thread.
I’ve noticed and others here seem to confirm that SDL does not capture events during a window resize, or at the beginning of a resize action; an event is only emitted when the resize is done (when the user releases the mouse button). During resize, the rendered image is just stretched to fit the new size, and is only re-drawn when the resize is done (at least on macOS). The workaround being discussed in the other thread is platform-specific, which is not viable for my application, and I’d guess probably not for many applications that use SDL.
Without additional context, the absence of a window event at the start of a resize feels like an oversight. Do folks know if there is a reason SDL2 doesn’t or can’t do this? Is it something that might be added in the future? For now, I’m just living with the stretching during resize, but that isn’t how most users would expect an application to behave, so of course a viable course a cross-platform solution would be really helpful.