[Bf-blender-cvs] [8dbce41] master: OSX/GHOST: fix T42305, appswitching not reliable, proposed by Fabio Arnold

Jens Verwiebe noreply at git.blender.org
Tue Oct 28 20:44:27 CET 2014


Commit: 8dbce41706be1e4c50d6e0a24db511bdaa37e4f0
Author: Jens Verwiebe
Date:   Tue Oct 28 20:43:52 2014 +0100
Branches: master
https://developer.blender.org/rB8dbce41706be1e4c50d6e0a24db511bdaa37e4f0

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

===================================================================

M	intern/ghost/intern/GHOST_WindowCocoa.mm

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 9e47ea1..ab313b0 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




More information about the Bf-blender-cvs mailing list