[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32242] trunk/blender/intern/ghost/intern/ GHOST_SystemCocoa.mm: OSX/Cocoa: Mouse up was not sent to WM after window resize

Damien Plisson damien.plisson at yahoo.fr
Sat Oct 2 11:15:33 CEST 2010


Revision: 32242
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32242
Author:   damien78
Date:     2010-10-02 11:15:32 +0200 (Sat, 02 Oct 2010)

Log Message:
-----------
OSX/Cocoa: Mouse up was not sent to WM after window resize

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	2010-10-02 06:34:04 UTC (rev 32241)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm	2010-10-02 09:15:32 UTC (rev 32242)
@@ -1059,6 +1059,8 @@
 					//Enforce only one resize message per event loop (coalescing all the live resize messages)					
 					window->updateDrawingContext();
 					pushEvent( new GHOST_Event(getMilliSeconds(), GHOST_kEventWindowSize, window) );
+					//Mouse up event is trapped by the resizing event loop, so send it anyway to the window manager
+					pushEvent(new GHOST_EventButton(getMilliSeconds(), GHOST_kEventButtonUp, window, convertButton(0)));
 					m_ignoreWindowSizedMessages = true;
 				}
 				break;





More information about the Bf-blender-cvs mailing list