Skip to content

Commit

Permalink
fix: restore webview2 visibility upon restoring a maximized window
Browse files Browse the repository at this point in the history
regression was introduce in #702
  • Loading branch information
amrbashir committed Oct 27, 2022
1 parent 38e49bd commit 541e606
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webview/webview2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,9 @@ window.addEventListener('mousemove', (e) => window.chrome.webview.postMessage('_
let _ = (*controller).SetIsVisible(false);
}

if wparam == WPARAM(win32wm::SIZE_RESTORED as _) {
if wparam == WPARAM(win32wm::SIZE_RESTORED as _)
|| wparam == WPARAM(win32wm::SIZE_MAXIMIZED as _)
{
let _ = (*controller).SetIsVisible(true);
}
}
Expand Down

0 comments on commit 541e606

Please sign in to comment.