mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-21 11:25:42 +01:00
Change: [OSX] Disable macOS Sierra's automatic tab feature
This commit is contained in:
parent
a6300fe70b
commit
3e910a5969
@ -214,6 +214,12 @@ static void setupApplication()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Disable the system-wide tab feature as we only have one window. */
|
||||||
|
if ([ NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:) ]) {
|
||||||
|
/* We use nil instead of NO as withObject requires an id. */
|
||||||
|
[ NSWindow performSelector:@selector(setAllowsAutomaticWindowTabbing:) withObject:nil];
|
||||||
|
}
|
||||||
|
|
||||||
/* Become the front process, important when start from the command line. */
|
/* Become the front process, important when start from the command line. */
|
||||||
[ [ NSApplication sharedApplication ] activateIgnoringOtherApps:YES ];
|
[ [ NSApplication sharedApplication ] activateIgnoringOtherApps:YES ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user