Skip to content

Conversation

@lucasfernog
Copy link
Member

I noticed this when clicking the Close Window menu item which sends a Cmd+W event to the application. It looks like the window was closed and tao tried to send the event to keyWindow which was null. This check also exists on winit:
https://github.com/rust-windowing/winit/blob/be1baf164cc80ebc8586f2c528fe854b1dafcb34/src/platform_impl/apple/appkit/app.rs#L36

I noticed this when clicking the `Close Window` menu item which sends a `Cmd+W` event to the application. It looks like the window was closed and tao tried to send the event to `keyWindow` which was null.
This check also exists on winit:
https://github.com/rust-windowing/winit/blob/be1baf164cc80ebc8586f2c528fe854b1dafcb34/src/platform_impl/apple/appkit/app.rs#L36
@lucasfernog lucasfernog requested a review from a team as a code owner March 6, 2025 16:31
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2025

Package Changes Through 95b6777

There are 1 changes which include tao with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tao 0.32.7 0.32.8

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog lucasfernog merged commit 996e28d into dev Mar 7, 2025
2 of 18 checks passed
@lucasfernog lucasfernog deleted the fix/macos-key-event-crash branch March 7, 2025 10:33
@github-actions github-actions bot mentioned this pull request Mar 7, 2025
@dwosk
Copy link

dwosk commented Mar 8, 2025

#1086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants