mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-11 14:39:30 +08:00
Merge branch 'develop' of https://github.com/wailsapp/wails into develop
This commit is contained in:
commit
0c1dbd75f5
@ -2338,10 +2338,9 @@ struct webview_priv
|
|||||||
size.height = height;
|
size.height = height;
|
||||||
[w->priv.window setMaxSize:size];
|
[w->priv.window setMaxSize:size];
|
||||||
|
|
||||||
[w->priv.window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary|NSWindowCollectionBehaviorFullScreenNone|NSWindowCollectionBehaviorFullScreenDisallowsTiling];
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
|
[[w->priv.window standardWindowButton:NSWindowZoomButton] setEnabled: NO];
|
||||||
NSButton *button = [w->priv.window standardWindowButton:NSWindowZoomButton];
|
});
|
||||||
[button setEnabled: NO];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WEBVIEW_API void webview_set_fullscreen(struct webview *w, int fullscreen)
|
WEBVIEW_API void webview_set_fullscreen(struct webview *w, int fullscreen)
|
||||||
|
Loading…
Reference in New Issue
Block a user