Hide the fullscreen button when leaving fullscreen mode. Fixes #88.
This commit is contained in:
parent
91d54a74e1
commit
a567ba08ea
2 changed files with 9 additions and 0 deletions
|
@ -115,6 +115,8 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
|
|||
observers_.RemoveObserver(obs);
|
||||
}
|
||||
|
||||
bool has_frame() const { return has_frame_; }
|
||||
|
||||
protected:
|
||||
explicit NativeWindow(content::WebContents* web_contents,
|
||||
base::DictionaryValue* options);
|
||||
|
|
|
@ -67,6 +67,13 @@
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (void)windowDidExitFullScreen:(NSNotification*)notification {
|
||||
if (!shell_->has_frame()) {
|
||||
NSWindow* window = shell_->GetNativeWindow();
|
||||
[[window standardWindowButton:NSWindowFullScreenButton] setHidden:YES];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface AtomNSWindow : AtomEventProcessingWindow {
|
||||
|
|
Loading…
Reference in a new issue