OSX/GHOST: fix T42305, appswitching not reliable, proposed by Fabio Arnold

This commit is contained in:
jens verwiebe 2014-10-28 20:43:52 +01:00
parent 0151af5054
commit 8dbce41706
Notes: blender-bot 2023-09-08 04:55:43 +02:00
Referenced by issue #42305, On OS X, when switching from another app to Blender via Mission Control, it doesn't work.
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,8 @@ enum {
- (void)windowDidBecomeKey:(NSNotification *)notification
{
systemCocoa->handleWindowEvent(GHOST_kEventWindowActivate, associatedWindow);
// work around for broken appswitching when combining cmd-tab and missioncontrol
[(NSWindow*)associatedWindow->getOSWindow() orderFrontRegardless];
}
- (void)windowDidResignKey:(NSNotification *)notification