fix: cast flags to uint for SetWindowPos

SetWindowPos expects uFlags as uint, but the flags variable was
inferred as int from the bitwise OR operations on untyped constants.
This fixes the Windows build error.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lea Anthony 2026-01-25 11:41:46 +11:00
commit 8380740382

View file

@ -1597,7 +1597,7 @@ func (w *windowsWebviewWindow) WndProc(msg uint32, wparam, lparam uintptr) uintp
int(newWindowRect.Top),
int(newWindowRect.Right-newWindowRect.Left),
int(newWindowRect.Bottom-newWindowRect.Top),
flags)
uint(flags))
// For frameless windows with decorations, re-extend the frame into client area
// to ensure proper window frame styling after DPI change.
if w.framelessWithDecorations() {