Revert "Disable full screen button (#650)" (#652)

This reverts commit ab825b3f11.
This commit is contained in:
RH12503 2021-04-05 20:02:11 +08:00 committed by GitHub
commit 37de2075ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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