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

Disable full screen button (#650)

This commit is contained in:
RH12503 2021-04-05 15:51:54 +08:00 committed by GitHub
parent ff7b6eacaf
commit ab825b3f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)