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

@ -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