Browse Source
Merge branch 'master' into feature/windowstate-fullscreen
pull/3849/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
0 deletions
-
native/Avalonia.Native/src/OSX/app.mm
-
native/Avalonia.Native/src/OSX/window.mm
|
|
|
@ -15,6 +15,10 @@ NSApplicationActivationPolicy AvnDesiredActivationPolicy = NSApplicationActivati |
|
|
|
} |
|
|
|
|
|
|
|
[[NSApplication sharedApplication] setActivationPolicy: AvnDesiredActivationPolicy]; |
|
|
|
|
|
|
|
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"]; |
|
|
|
|
|
|
|
[[NSApplication sharedApplication] setHelpMenu: [[NSMenu new] initWithTitle:@""]]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -432,6 +432,7 @@ private: |
|
|
|
WindowEvents = events; |
|
|
|
[Window setCanBecomeKeyAndMain]; |
|
|
|
[Window disableCursorRects]; |
|
|
|
[Window setTabbingMode:NSWindowTabbingModeDisallowed]; |
|
|
|
} |
|
|
|
|
|
|
|
virtual HRESULT Show () override |
|
|
|
|