5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-10 01:50:36 +08:00

Merge branch 'develop' of https://github.com/wailsapp/wails into develop

This commit is contained in:
Lea Anthony 2021-04-05 18:04:31 +10:00
commit 0c1dbd75f5

View File

@ -2338,10 +2338,9 @@ struct webview_priv
size.height = height;
[w->priv.window setMaxSize:size];
[w->priv.window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary|NSWindowCollectionBehaviorFullScreenNone|NSWindowCollectionBehaviorFullScreenDisallowsTiling];
NSButton *button = [w->priv.window standardWindowButton:NSWindowZoomButton];
[button setEnabled: NO];
dispatch_async(dispatch_get_main_queue(), ^{
[[w->priv.window standardWindowButton:NSWindowZoomButton] setEnabled: NO];
});
}
WEBVIEW_API void webview_set_fullscreen(struct webview *w, int fullscreen)