| 1 | # Reasonix WebView2 Patch |
| 2 | |
| 3 | This directory contains the Windows packages used by Wails v2 from |
| 4 | `github.com/wailsapp/go-webview2` v1.0.23 (commit |
| 5 | `e08e9397f04ad0b1050d7e5bdc8e27faddc87987`). The original MIT license is in |
| 6 | `LICENSE`. |
| 7 | |
| 8 | Reasonix carries one behavioral patch in `pkg/edge/chromium.go`: WebView2 |
| 9 | monitor-scale detection remains enabled while raw-pixel bounds mode is active. |
| 10 | Without it, a frameless window minimized on a mixed-DPI Windows desktop can |
| 11 | adopt another monitor's rasterization scale and restore with stale WebView |
| 12 | bounds. |
| 13 | |
| 14 | The diagnosis and upstream implementation are documented in: |
| 15 | |
| 16 | - https://github.com/esengine/DeepSeek-Reasonix/issues/5862 |
| 17 | - https://github.com/wailsapp/wails/issues/5544 |
| 18 | - https://github.com/wailsapp/wails/pull/5734 |
| 19 | |
| 20 | Remove this replacement when Wails v2 publishes an equivalent fix. Until then, |
| 21 | keep the copied packages aligned with the version required by `desktop/go.mod` |
| 22 | and retain `TestWebView2OwnsMonitorScaleDetection`. |
| 23 |