only handling inContent CarbonEvents if we are the active window

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2003-01-28 16:45:31 +00:00
parent 851b3a889f
commit a3195b73a6
2 changed files with 4 additions and 2 deletions

View File

@ -137,7 +137,8 @@ static pascal OSStatus MouseEventHandler( EventHandlerCallRef handler , EventRef
WindowRef window ;
short windowPart = ::FindWindow(point, &window);
if ( windowPart == inContent )
if ( IsWindowActive(window) && windowPart == inContent )
{
switch ( GetEventKind( event ) )
{

View File

@ -137,7 +137,8 @@ static pascal OSStatus MouseEventHandler( EventHandlerCallRef handler , EventRef
WindowRef window ;
short windowPart = ::FindWindow(point, &window);
if ( windowPart == inContent )
if ( IsWindowActive(window) && windowPart == inContent )
{
switch ( GetEventKind( event ) )
{