Skip to content

CMD + Q does not behave the same as closing the window with the X button (macOS) #20316

@hacknus

Description

@hacknus

Bevy version

0.16

What you did

I noticed that closing the application by clicking the "X" button will correctly terminate it and my autosave_on_exit function is called:

        .add_systems(Last, autosave_on_exit)

What went wrong

but when i do "CMD+Q" it will just kill the application (no errors) and the autosave_on_exit is never called.

I would expect the same behavior for "CMD+Q" as for closing the window/application.

Additional information

Tested on macOS.

Created a new issue as requested in #17307

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorO-MacOSSpecific to the MacOS (Apple) desktop operating systemS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongS-Needs-TestingTesting must be done before this is safe to merge

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions