From 8dbce41706be1e4c50d6e0a24db511bdaa37e4f0 Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Tue, 28 Oct 2014 20:43:52 +0100 Subject: [PATCH] OSX/GHOST: fix T42305, appswitching not reliable, proposed by Fabio Arnold --- intern/ghost/intern/GHOST_WindowCocoa.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index 9e47ea1d598..ab313b06f66 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -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