Skip to content

Commit

Permalink
refactor: WM_WINDOWPOSCHANGED to handle WM_MOVE and WM_MOVING for Web…
Browse files Browse the repository at this point in the history
…View2
  • Loading branch information
CDHJS committed Jan 8, 2025
1 parent 26abf63 commit b6a9fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webview2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ impl InnerWebView {
let _ = (*controller).MoveFocus(COREWEBVIEW2_MOVE_FOCUS_REASON_PROGRAMMATIC);
}

WM_WINDOWPOSCHANGED => {
msg if msg == WM_MOVE || msg == WM_MOVING => {
let controller = dwrefdata as *mut ICoreWebView2Controller;
let _ = (*controller).NotifyParentWindowPositionChanged();
}
Expand Down

0 comments on commit b6a9fbe

Please sign in to comment.