Am I supposed to call SDL_DestroyWindow from SDL_WINDOWEVENT_CLOSE handler or am I doing something wrong? In my program, SDL windows (there are multiple) won’t close on their own, I need to Destroy them explicitly when receiving the close event. Is this normal?
I don’t know specifically about SDL windows but in general, yes, I would say it is normal. For example if a window hosts an editor of some kind then attempting to close the window should check whether there is any unsaved data and prompt the user to Save, DIscard or Cancel (and if Cancel is selected the window won’t be closed).