Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backends: OSX: Remove notification observer when shutting down #8331

Closed
wants to merge 1 commit into from

Conversation

jrachele
Copy link
Contributor

This change removes the ImGui observer from NSNotificationCenter when shutting down.

Explanation:

This prevents an issue that may occur when shutting down, where ImGui receives a NSApplicationDidResignActiveNotification from the notification center. When this happens, ImGui will call ImGui::GetIO() but this call will trigger an assert as the context has already been destroyed, causing the application to crash.

@ocornut
Copy link
Owner

ocornut commented Jan 20, 2025

Thank you for your PR! Merged as aa1b4ea.

@ocornut ocornut closed this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants