5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-17 01:19:29 +08:00

Support fullscreen for frameless windows.

This commit is contained in:
Lea Anthony 2024-12-07 21:14:38 +11:00
parent 2a6e3da30a
commit 296b9debd3
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [darwin] Ensure `windowDidBecomeKey` callback is running on main thread by [@leaanthony](https://github.com/leaanthony)
- Ensure key callbacks in window run() are called on the main thread by [@leaanthony](https://github.com/leaanthony)
- [darwin] Support fullscreen for frameless windows by [@leaanthony](https://github.com/leaanthony)
## v3.0.0-alpha.8.3 - 2024-12-07

View File

@ -33,6 +33,9 @@ void* windowNew(unsigned int id, int width, int height, bool fraudulentWebsiteWa
backing:NSBackingStoreBuffered
defer:NO];
// Allow fullscreen. Needed for frameless windows
window.collectionBehavior = NSWindowCollectionBehaviorFullScreenPrimary;
// Create delegate
WebviewWindowDelegate* delegate = [[WebviewWindowDelegate alloc] init];
[delegate autorelease];