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

[Feature Request]: option to hide window when app is deactivated #37891

Closed
3 tasks done
ericestes opened this issue Apr 9, 2023 · 0 comments · Fixed by #37933
Closed
3 tasks done

[Feature Request]: option to hide window when app is deactivated #37891

ericestes opened this issue Apr 9, 2023 · 0 comments · Fixed by #37933

Comments

@ericestes
Copy link

Preflight Checklist

Problem Description

There is currently no option to hide a window when its app is not active. This is important for, for example, utility or info panels.

Proposed Solution

Expose the hidesOnDeactivate window option (https://developer.apple.com/documentation/appkit/nswindow/1419777-hidesondeactivate)

This normally defaults to true for NSPanel windows, but it looks like the BrowserWindow panel type is still an NSWindow and so does not get this behavior.

Alternatives Considered

You could show the panel on the app's activate event, but there is no corresponding deactivate event. You could listen to every window's blur event, but this can become clunky especially when the functionality exists natively.

Additional Information

No response

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

Successfully merging a pull request may close this issue.

2 participants