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 3536

Summary: Information about the cause of SDL_QUIT event requested
Product: SDL Reporter: Intellectual Kitty <IntellectualKitty>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: sprocklem
Version: HG 2.1   
Hardware: x86   
OS: Other   

Description Intellectual Kitty 2016-12-30 04:30:17 UTC
An SDL_QUIT event can be generated for a number of reasons.  However, this information is not passed along with the event, which makes it difficult for the application to decide whether or not the quit event should be acted on.  For instance, a text editing application should continue to run even when the last window is closed, but it's currently not possible to determine this kind of quit event from one generated for another reason (e.g., Command-Q on macOS, an interrupt signal, etc.).
Comment 1 Sam Lantinga 2017-08-11 20:06:36 UTC
This is a good idea for SDL 2.1, thanks!