Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions v3/pkg/application/webview_window_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2611,6 +2611,20 @@ func (w *windowsWebviewWindow) navigationCompleted(
}
w.update()
}

// The first-paint nudge above ends with the controller IsVisible=true. For
// any window that is not logically visible at this point — one created
// Hidden and never shown (e.g. a pre-created tray popup), or one the app
// hid before this first NavigationCompleted arrived — that leaves a live
// WINDOW_TO_VISUAL DirectComposition input surface hit-testing at the
// window's location: an invisible desktop right-click "dead zone".
// Re-hide the controller so a hidden window has no live surface; show()
// re-asserts IsVisible(true) when the window is actually shown.
// showRequested is initialised to !options.Hidden and only show()/hide()
// flip it, so these two flags alone identify both cases.
if !w.windowShown && !w.showRequested {
_ = w.chromium.Hide()
}
}

func (w *windowsWebviewWindow) processKeyBinding(vkey uint) bool {
Expand Down
Loading