mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Disable full screen button (#650)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user