mirror of https://github.com/OpenTTD/OpenTTD
Fix #10044: Cursor being poorly managed on macOS in fullscreen mode
parent
29ce013eda
commit
c5d43b433b
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue