]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/renderer.cpp
Small code cleanup
[wxWidgets.git] / src / mac / carbon / renderer.cpp
index e0f9bc23e2f4734b4eb8e1cac2bf0d7226c5f01e..1a58d904af5a4e1c33cfe7e2d1ae62a62cca4c78 100644 (file)
@@ -374,6 +374,12 @@ wxRendererMac::DrawItemSelectionRect(wxWindow *win,
 {
     if ( !(flags & wxCONTROL_SELECTED) )
         return;
+        
+    if (flags & wxCONTROL_FOCUSED)
+    {
+        if (!IsControlActive( (ControlRef)win->GetHandle() ))
+            flags = wxCONTROL_SELECTED;
+    }
 
     RGBColor selColor;
     GetThemeBrushAsColor(flags & wxCONTROL_FOCUSED