OSX/Cocoa: Mouse up was not sent to WM after window resize
This commit is contained in:
@@ -1059,6 +1059,8 @@ GHOST_TSuccess GHOST_SystemCocoa::handleWindowEvent(GHOST_TEventType eventType,
|
||||
//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;
|
||||
|
||||
Reference in New Issue
Block a user