Skip to content

Conversation

@httnn
Copy link
Contributor

@httnn httnn commented May 10, 2024

previously, calling window.focus() would cause a crash in some scenarios, because certain members of WindowState were borrowed mutably while already being borrowed. this PR fixes the issue by deferring window focus events to be triggered before calling WindowHandler:on_frame().

Copy link
Member

@prokopyl prokopyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from a little nitpick this looks good to me. 👍

I don't have a macOS machine to test this on however, and I'm not very familiar with macOS's APIs in general yet, so I think another pair of eyes would be good to double check this. 🙂

@dathinaios
Copy link
Contributor

I don't have a macOS machine to test this on however, and I'm not very familiar with macOS's APIs in general yet, so I think another pair of eyes would be good to double check this. 🙂

Tested on MacOS Ventura using Reaper, and it is working great 🙂👍

@dathinaios
Copy link
Contributor

Any reason this is not being merged? I have been using these changes since May with no issues.

@micahrj micahrj dismissed prokopyl’s stale review December 9, 2024 19:18

requested changes have been addressed

@micahrj micahrj merged commit 9a0b42c into RustAudio:master Dec 9, 2024
3 checks passed
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