fix: unify BrowserWindow.isVisible()
logic cross-platform (#38242)
This commit is contained in:
parent
9bd9d312f8
commit
e83197669c
4 changed files with 23 additions and 5 deletions
|
@ -491,10 +491,6 @@ void NativeWindowMac::Hide() {
|
|||
|
||||
bool NativeWindowMac::IsVisible() {
|
||||
bool occluded = [window_ occlusionState] == NSWindowOcclusionStateVisible;
|
||||
|
||||
// For a window to be visible, it must be visible to the user in the
|
||||
// foreground of the app, which means that it should not be minimized or
|
||||
// occluded
|
||||
return [window_ isVisible] && !occluded && !IsMinimized();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue