forked from bartvdbraak/blender
OSX/Cocoa: Mouse up was not sent to WM after window resize
This commit is contained in:
parent
db1b74654b
commit
af8ae62ec0
@ -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)
|
//Enforce only one resize message per event loop (coalescing all the live resize messages)
|
||||||
window->updateDrawingContext();
|
window->updateDrawingContext();
|
||||||
pushEvent( new GHOST_Event(getMilliSeconds(), GHOST_kEventWindowSize, window) );
|
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;
|
m_ignoreWindowSizedMessages = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user