factoring common code out
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 20 May 2004 18:42:38 +0000 (18:42 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 20 May 2004 18:42:38 +0000 (18:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 5c51c2e88cefe9794f119d53c091b4709ddcb8bc..9bac13b60f12b71b009f4d079bb6936c846de173 100644 (file)
@@ -212,8 +212,6 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
                     wxFocusEvent event(wxEVT_KILL_FOCUS, thisWindow->GetId());
                     event.SetEventObject(thisWindow);
                     thisWindow->GetEventHandler()->ProcessEvent(event) ;
-                    if (thisWindow->MacIsUserPane())
-                        result = noErr;
                 }
                 else
                 {
@@ -231,9 +229,9 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
                     wxFocusEvent event(wxEVT_SET_FOCUS, thisWindow->GetId());
                     event.SetEventObject(thisWindow);
                     thisWindow->GetEventHandler()->ProcessEvent(event) ;
-                    if (thisWindow->MacIsUserPane())
-                        result = noErr;
                 }
+                if ( thisWindow->MacIsUserPane() )
+                    result = noErr ;
             }
             break ;
 #endif