We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1023

Summary: SDL_QUIT never polled
Product: SDL Reporter: nomad.c4
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows 7   

Description nomad.c4 2010-07-13 14:35:35 UTC
When i pressed the X button, event i polled is SDL_WINDOWEVENT with event (struct's Uint8 variable) SDL_CLOSEWINDOW
Comment 1 Sam Lantinga 2010-07-17 18:46:19 UTC
I'm not sure what the issue is here?  If you use compatibility functions, you get SDL_QUIT when the window close button is pressed.  If you don't, you only get SDL_QUIT if the system requests that the application quit, and you get the window event instead.

Is it just that it isn't documented well?
Comment 2 nomad.c4 2010-07-18 01:15:01 UTC
Ok, thanks. I read the SDL_events.h and i see the "SDL_QUIT" and in examples code i see it, so i think it's like old SDL message type. Now i know that my thinking is bad ;) Thanks for reply.