From a3195b73a67d5f12ba341f5eaf8b93eabbee89e6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 28 Jan 2003 16:45:31 +0000 Subject: [PATCH] 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 --- src/mac/carbon/toplevel.cpp | 3 ++- src/mac/toplevel.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 ) ) { -- 2.50.0