diff options
author | Maarten Gribnau <mail@maartengribnau.com> | 2003-01-02 00:35:51 +0300 |
---|---|---|
committer | Maarten Gribnau <mail@maartengribnau.com> | 2003-01-02 00:35:51 +0300 |
commit | e3376a4338cdba3d9af9c5932fa1903e46888e38 (patch) | |
tree | 0e2cd05a931f53108f35b4477516adbf759bd0f4 /intern | |
parent | 581b3139b1e34b4351b4cd13540057a5c86fcb7f (diff) |
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
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCarbon.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCarbon.cpp b/intern/ghost/intern/GHOST_SystemCarbon.cpp index de576076234..9ae9c2d4006 100644 --- a/intern/ghost/intern/GHOST_SystemCarbon.cpp +++ b/intern/ghost/intern/GHOST_SystemCarbon.cpp @@ -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; } |