Commit 25137ce
feat(windows): add support for custom hit-test logic for non-client regions (#5462)
* feat(windows): add support for custom hit-test logic for non-client regions on Windows
* fix(windows): address review comments
* refactor: simplify non-client hit test handling logic
* fix: remove handling for non-client right mouse button events
* feat(windows): add cursor handling
* feat(windows): handle right-click on window caption to display the system menu
* fix(windows): enable non-client region tracking only is the feature is enabled
* fix(windows): preserve native hover state for non-client buttons
* fix(windows): address review comments
* fix(runtime): rename app region css tracking internals
* chore(windows): document non-client hit test ordering
* feat(runtime): add runtime-config-ready event to improve initialization consistency
* feat(windows): document `NonClientRegionSupport` and `WebView2CompositionHosting` options with examples and video
* docs: correct video asset path in frameless windows documentation
* docs: clarify `WebView2CompositionHosting` experimental status
* docs: fix alignment issue in `WebView2CompositionHosting` example
* docs: clarify Snap Layouts behavior and add reference to native non-client regions
* docs(windows): replace `--wails-app-region` with `--wails-non-client-region` in examples and descriptions
* fix(runtime): ensure runtime initialization checks for DOM environment
* [skip ci] Publish @wailsio/runtime v3.0.0-alpha.96
* fix(windows): add `extendFrameIntoClientArea` helper for improved frame extension logic
* fix(windows): clarify 32-bit API limitations and retain 64-bit `SetWindowLongPtrW`/`GetWindowLongPtrW` usage
* fix(windows): handle `WM_SETCURSOR` with `compositionCursor` to ensure correct cursor display in client area
* feat(webview2): add support for `ICoreWebView2NavigationStartingEventHandler` and navigation starting event handling
* fix(webview2): add fallback to HWND controller when composition hosting fails and implement resource cleanup
* fix(windows): use DPI-aware system metrics for non-client area calculations and remove hardcoded resize border fields
* fix(webview2): improve DPI handling for composition-hosted and HWND-hosted WebViews, ensure correct rasterization scale updates
* fix(windows): track mouse leave events in non-client and client areas to improve input handling
* fix(runtime): add comment to clarify
* [skip ci] Publish @wailsio/runtime v3.0.0-alpha.97
* fix(windows): remove duplicate non-client state
* chore(v3): bump webview2 to v1.0.24
* chore(v3): bump to v3.0.0-alpha2.114 and update changelog [skip ci]
* [skip ci] Publish @wailsio/runtime v3.0.0-alpha.96
* chore(v3): bump to v3.0.0-alpha2.114 and update changelog [skip ci]
* revert: drop fork-CI artifacts (runtime alpha.96 bump + typedoc regen, fork-minted alpha2.114 release)
These were committed to this branch by the fork's own GitHub Actions
(publish-npm on push, nightly-release-v3 on cron), not by anyone working
on the PR. The typedoc regen stamps fork source links into 90+ files and
the release bump collides with upstream's real v3.0.0-alpha2.114.
* fix(runtime): append scanned elements without spreading the NodeList
Spreading document.body.querySelectorAll("*") into push() passes every
element as a call argument, which overflows the engine's argument limit
on very large documents. Reported by Copilot review.
---------
Co-authored-by: GitHub Actions <github-actions@github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: taliesin-ai <lea.anthony@gmail.com>1 parent aea50fb commit 25137ce
41 files changed
Lines changed: 2459 additions & 99 deletions
File tree
- docs/src
- assets/windows-native-non-client-regions
- content/docs/features/windows
- v3
- internal
- assetserver/bundledassets
- runtime
- desktop/@wailsio/runtime
- src
- webview2/pkg/edge
- pkg
- application
- w32
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
176 | 327 | | |
177 | 328 | | |
178 | 329 | | |
| |||
358 | 509 | | |
359 | 510 | | |
360 | 511 | | |
| 512 | + | |
361 | 513 | | |
362 | 514 | | |
363 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| 951 | + | |
| 952 | + | |
951 | 953 | | |
952 | 954 | | |
953 | 955 | | |
| |||
973 | 975 | | |
974 | 976 | | |
975 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
976 | 987 | | |
977 | 988 | | |
978 | 989 | | |
| |||
982 | 993 | | |
983 | 994 | | |
984 | 995 | | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
985 | 1007 | | |
986 | 1008 | | |
987 | 1009 | | |
| |||
0 commit comments