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 (#1451)
  • Loading branch information
CDHJS authored Jan 22, 2025
1 parent f007e65 commit 5363d9b
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 @@ -1165,7 +1165,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 5363d9b

Please sign in to comment.