Commit 2ce213c
axel10
fix(windows): fix double titlebar on Windows 10 when TitleBarStyle is hidden
When `titleBarStyle` is set to `TitleBarStyle.hidden` on Windows 10, adding a 1px top offset in `WM_NCCALCSIZE` leaves a non-client margin at the top of the window. On Windows 10, DWM interprets this non-client margin as an active caption area and forces rendering of the system default title bar alongside the Flutter custom title bar.
Removing the extra top offset allows the client area to cover the top edge completely, preventing DWM from drawing the native title bar.1 parent dfd3467 commit 2ce213c
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments