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

App.background does not reflect current state on Mac #238

Closed
nriley opened this issue Feb 7, 2021 · 1 comment
Closed

App.background does not reflect current state on Mac #238

nriley opened this issue Feb 7, 2021 · 1 comment

Comments

@nriley
Copy link

nriley commented Feb 7, 2021

Mac apps can be "transformed" (TransformProcessType or NSApp setApplicationPolicy:) from background to foreground apps. It seems the background property of apps in Talon does not take this into account (perhaps it only looks at the Info.plist on disk), so it returns True for this app even though it has an icon in the Dock and can be activated.

You can examine the NSApplicationActivationPolicy of a running application, which should reflect these changes.

The issue that prompted this was that I couldn't bring an app to the front because the knausj switcher was filtering apps where background=True. The app in question returns NSApplicationActivationPolicyRegular. For the purposes of the switcher, it might make sense to also consider NSApplicationActivationPolicyAccessory as non-"background".

@lunixbochs lunixbochs added this to the v0.2.0 milestone Feb 7, 2021
@lunixbochs
Copy link

fixed by upcoming beta

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

No branches or pull requests

2 participants