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 - Information about the cause of SDL_QUIT event requested
Summary: Information about the cause of SDL_QUIT event requested
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.1
Hardware: x86 Other
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-30 04:30 UTC by Intellectual Kitty
Modified: 2017-08-11 20:06 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!