mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Support fullscreen for frameless windows.
This commit is contained in:
parent
2a6e3da30a
commit
296b9debd3
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue