diff --git a/src/kits/interface/ControlLook.cpp b/src/kits/interface/ControlLook.cpp index bd44d4fee9..3642300ed4 100644 --- a/src/kits/interface/ControlLook.cpp +++ b/src/kits/interface/ControlLook.cpp @@ -87,8 +87,10 @@ BControlLook::Flags(BControl* control) const if (!control->IsEnabled()) flags |= B_DISABLED; - if (control->IsFocus()) + if (control->Window() != NULL && control->Window()->IsActive() + && control->IsFocus()) { flags |= B_FOCUSED; + } if (control->Value() == B_CONTROL_ON) flags |= B_ACTIVATED;