* 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:
@@ -4156,6 +4156,9 @@ BView::_Attach()
|
|||||||
if (fOwner->fPulseRunner == NULL)
|
if (fOwner->fPulseRunner == NULL)
|
||||||
fOwner->SetPulseRate(500000);
|
fOwner->SetPulseRate(500000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!fOwner->IsHidden())
|
||||||
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (BView* child = fFirstChild; child != NULL; child = child->fNextSibling) {
|
for (BView* child = fFirstChild; child != NULL; child = child->fNextSibling) {
|
||||||
@@ -4184,6 +4187,9 @@ BView::_Detach()
|
|||||||
if (fOwner) {
|
if (fOwner) {
|
||||||
check_lock_no_pick();
|
check_lock_no_pick();
|
||||||
|
|
||||||
|
if (!fOwner->IsHidden())
|
||||||
|
Invalidate();
|
||||||
|
|
||||||
// make sure our owner doesn't need us anymore
|
// make sure our owner doesn't need us anymore
|
||||||
|
|
||||||
if (fOwner->CurrentFocus() == this)
|
if (fOwner->CurrentFocus() == this)
|
||||||
|
|||||||
Reference in New Issue
Block a user