Update webview_window.go (#2912)

This commit is contained in:
ALMAS 2023-09-16 05:20:49 +08:00 committed by GitHub
commit 37b99b9cb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -488,7 +488,7 @@ func (w *WebviewWindow) IsFocused() bool {
if w.impl == nil {
return false
}
return invokeSyncWithResult(w.impl.isFullscreen)
return invokeSyncWithResult(w.impl.isFocused)
}
// IsFullscreen returns true if the window is fullscreen