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

[help wanted] Window.all() 能返回当前窗口的 occlusionState 吗? #243

Open
SuperShan0926 opened this issue Jul 30, 2024 · 0 comments

Comments

@SuperShan0926
Copy link

electron 里通过 onVisiblityChange 回调并不准,我试了用云音乐这样的 app 盖住窗口也不能触发 visibilityState 为 hidden,这里通过rust有办法拿到窗口的 occlusionState 信息的话,应该比较容易实现了

https://developer.apple.com/documentation/appkit/nswindow/1419321-occlusionstate

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

No branches or pull requests

1 participant