From 838074038280d008b786acbeb916808bee99f1ed Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 25 Jan 2026 11:41:46 +1100 Subject: [PATCH] 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 --- v3/pkg/application/webview_window_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/pkg/application/webview_window_windows.go b/v3/pkg/application/webview_window_windows.go index 831cadc9c..f2c32e3aa 100644 --- a/v3/pkg/application/webview_window_windows.go +++ b/v3/pkg/application/webview_window_windows.go @@ -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() {