* invalidate in _Attach and _Detach - I still hope to
find a better solution, at least it fixes the problem that when views are added to already showing windows, and those views set their view color in AttachedToWindow(), the app_server will have already cleared the background with the previous view color (for example white check boxes problem in Tracker Settings window) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17508 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ae749d90ce
commit
5add574bc9
@ -4156,6 +4156,9 @@ BView::_Attach()
|
||||
if (fOwner->fPulseRunner == NULL)
|
||||
fOwner->SetPulseRate(500000);
|
||||
}
|
||||
|
||||
if (!fOwner->IsHidden())
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
for (BView* child = fFirstChild; child != NULL; child = child->fNextSibling) {
|
||||
@ -4184,6 +4187,9 @@ BView::_Detach()
|
||||
if (fOwner) {
|
||||
check_lock_no_pick();
|
||||
|
||||
if (!fOwner->IsHidden())
|
||||
Invalidate();
|
||||
|
||||
// make sure our owner doesn't need us anymore
|
||||
|
||||
if (fOwner->CurrentFocus() == this)
|
||||
|
Loading…
Reference in New Issue
Block a user