Added mouse down event when window was activated by
clicking on it. The mouse up was already generated. They are now balanced by mouse downs. The behaviour of the OSX target now matches that of the WIN32 target. Maarten
This commit is contained in:
parent
581b3139b1
commit
e3376a4338
|
@ -654,6 +654,13 @@ bool GHOST_SystemCarbon::handleMouseDown(EventRef event)
|
|||
case inContent:
|
||||
if (window != ::FrontWindow()) {
|
||||
::SelectWindow(window);
|
||||
/*
|
||||
* We add a mouse down event on the newly actived window
|
||||
*/
|
||||
//GHOST_PRINT("GHOST_SystemCarbon::handleMouseDown(): adding mouse down event, " << ghostWindow << "\n");
|
||||
EventMouseButton button;
|
||||
::GetEventParameter(event, kEventParamMouseButton, typeMouseButton, NULL, sizeof(button), NULL, &button);
|
||||
pushEvent(new GHOST_EventButton(getMilliSeconds(), GHOST_kEventButtonDown, ghostWindow, convertButton(button)));
|
||||
} else {
|
||||
handled = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue