Finding SDL_Quit with PumpEvents

How would I go about using both SDL_PumpEvents and looking for the SDL
event SDL_Quit? Should I somehow find the “X” button on the window and
check that against the placement of the cursor? This would change
depending on the window style & OS. I mean, I could just turn off
PumpEvents when the game isn’t in progress, and ask the user to go to an
"Idle Mode" before quitting. What’s the best way to do this kinda thing?