BButton focus behaves differently from others
|Reported by:||ttcoder||Owned by:||axeld|
|Has a Patch:||no||Platform:||All|
A very very very minor "bug" in hrev45824 :
If a window loses focus/is deactivated (e.g. pushed to back), the CurrentFocus() view in that window will redraw itself without the blue line, and redraw it back when the window gets active again. This was true for all BControls in BeOS.
The bug is that... in Haiku this is true for all except BButton. At first, it seems BButton::Draw() makes the decision to draw the line only based on BView::IsFocus() but forgets to also check Window()->IsActive(), so that would be easy to fix, just add the missing check.
But looking at its Draw() and WindowActivated() it seems everything is in order. Maybe the problem is in BControlLook (but if so then why are the other bcontrols not affected?).