[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25066] trunk/blender/intern/ghost/intern/ GHOST_SystemCocoa.mm: Cocoa: fix delaying issue for events that were fired outside the processEvents function

Damien Plisson damien.plisson at yahoo.fr
Wed Dec 2 11:10:20 CET 2009


Revision: 25066
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25066
Author:   damien78
Date:     2009-12-02 11:10:20 +0100 (Wed, 02 Dec 2009)

Log Message:
-----------
Cocoa: fix delaying issue for events that were fired outside the processEvents function
An example of a visible issue was a delayed wm resize when switching to/from fullscreen mode

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm

Modified: trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm	2009-12-02 07:56:34 UTC (rev 25065)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm	2009-12-02 10:10:20 UTC (rev 25066)
@@ -746,8 +746,6 @@
 	bool anyProcessed = false;
 	NSEvent *event;
 	
-	m_outsideLoopEventProcessed = false;
-	
 	//	SetMouseCoalescingEnabled(false, NULL);
 	//TODO : implement timer ??
 	
@@ -844,9 +842,12 @@
 		} while (event!= nil);		
 	//} while (waitForEvent && !anyProcessed); Needed only for timer implementation
 	
+	if (m_outsideLoopEventProcessed) {
+		m_outsideLoopEventProcessed = false;
+		return true;
+	}
 	
-	
-    return anyProcessed || m_outsideLoopEventProcessed;
+    return anyProcessed;
 }
 
 //Note: called from NSApplication delegate





More information about the Bf-blender-cvs mailing list