`SDL_QUIT` when closing first created window

From what I understand an SDL_QUIT event is sent when you close your last window and no more windows are/would be open after that. And I was wondering if there is any way to make SDL send a SDL_QUIT event when closing your first created window, since that is usually the main window the applications lifetime is/should be tied to.

You could wait for a window close event and compare event.window.windowID to see if it’s your main window and ignore SDL_QUIT.

Yea, that is kinda what I’ve been doing, was just wondering if there is a “more ideal” way of doing it. But it seems like not (at least currently)