1
0
Fork 0

Fix #10044: Cursor being poorly managed on macOS in fullscreen mode

pull/12699/head
yeah-its-gloria 2024-05-18 20:58:12 -04:00
parent 29ce013eda
commit c5d43b433b
No known key found for this signature in database
GPG Key ID: D9630C1F73389570
2 changed files with 1 additions and 4 deletions

View File

@ -206,9 +206,6 @@ bool VideoDriver_Cocoa::ToggleFullscreen(bool full_screen)
if ([ this->window respondsToSelector:@selector(toggleFullScreen:) ]) {
[ this->window performSelector:@selector(toggleFullScreen:) withObject:this->window ];
/* Hide the menu bar and the dock */
[ NSMenu setMenuBarVisible:!full_screen ];
this->UpdateVideoModes();
InvalidateWindowClassesData(WC_GAME_OPTIONS, 3);
return true;

View File

@ -1288,7 +1288,7 @@ void CocoaDialog(const char *title, const char *message, const char *buttonLabel
/** Presentation options to use for full screen mode. */
- (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
{
return NSApplicationPresentationFullScreen | NSApplicationPresentationHideMenuBar | NSApplicationPresentationHideDock;
return NSApplicationPresentationFullScreen | NSApplicationPresentationAutoHideMenuBar;
}
@end