From 5add574bc9cbaec39661e59e1772ed44fb9f8016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 19 May 2006 09:45:01 +0000 Subject: [PATCH] * 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 --- src/kits/interface/View.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index f9cc773ecb..a8d5f6ad89 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -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)