From: Stefan Csomor Date: Tue, 28 Jan 2003 16:45:31 +0000 (+0000) Subject: only handling inContent CarbonEvents if we are the active window X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a3195b73a67d5f12ba341f5eaf8b93eabbee89e6 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 --- diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 4fed48c943..90dd8057ab 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -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 ) ) { diff --git a/src/mac/toplevel.cpp b/src/mac/toplevel.cpp index 4fed48c943..90dd8057ab 100644 --- a/src/mac/toplevel.cpp +++ b/src/mac/toplevel.cpp @@ -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 ) ) {