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:
parent
851b3a889f
commit
a3195b73a6
@ -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 ) )
|
||||
{
|
||||
|
@ -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 ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user