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

macOS: set activation policy by default if app does not have a bundle identifier #3961

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nicoburns
Copy link
Contributor

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

This is an alternative fix for #3958 which makes the fix within winit itself rather than in the window example like #3959. I think something like this is probably the better fix as it means that users don't all have to set the activation policy manually if they want keyboard support.

@purajit
Copy link
Contributor

purajit commented Oct 23, 2024

(As the author of #3920 that caused this) Thanks for doing this so quickly! Makes sense to me.

Copy link
Member

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

Ah, the difference between bundled and unbundled apps continue to be my bane!

Comment on lines +121 to +123
let is_bundle =
unsafe { NSRunningApplication::currentApplication().bundleIdentifier().is_some() };
if !is_bundle {
Copy link
Member

Choose a reason for hiding this comment

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

Please add a comment here, perhaps linking to #3958

@madsmtm madsmtm added B - bug Dang, that shouldn't have happened DS - macos labels Oct 25, 2024
@madsmtm madsmtm linked an issue Oct 25, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - macos
Development

Successfully merging this pull request may close these issues.

macOS: window example doesn't accept keyboard focus
4 participants