File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 20842084}
20852085
20862086void DisplayServerMacOS::update_presentation_mode () {
2087+ bool has_fs_windows = false ;
20872088 for (const KeyValue<WindowID, WindowData> &wd : windows) {
2088- if (wd.value .fullscreen && wd.value .exclusive_fullscreen ) {
2089- return ;
2089+ if (wd.value .fullscreen ) {
2090+ if (wd.value .exclusive_fullscreen ) {
2091+ return ;
2092+ } else {
2093+ has_fs_windows = true ;
2094+ }
20902095 }
20912096 }
2092- [NSApp setPresentationOptions: NSApplicationPresentationDefault];
2097+ if (has_fs_windows) {
2098+ [NSApp setPresentationOptions: NSApplicationPresentationAutoHideMenuBar | NSApplicationPresentationAutoHideDock | NSApplicationPresentationFullScreen];
2099+ } else {
2100+ [NSApp setPresentationOptions: NSApplicationPresentationDefault];
2101+ }
20932102}
20942103
20952104void DisplayServerMacOS::window_set_min_size (const Size2i p_size, WindowID p_window) {
You can’t perform that action at this time.
0 commit comments