From 59b700d0869f32d2b6008138836e17bd7cf1098c Mon Sep 17 00:00:00 2001 From: X512 Date: Sun, 19 Jan 2020 23:53:14 +0900 Subject: [PATCH] Interface Kit: remove more workarounds for BDragger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This workarounds are no longer needed after hrev53713. Change-Id: I7b809c79bd9d2345a991f0d2360f79876d10cd6b Reviewed-on: https://review.haiku-os.org/c/haiku/+/2132 Reviewed-by: Stephan Aßmus --- src/kits/interface/Dragger.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/kits/interface/Dragger.cpp b/src/kits/interface/Dragger.cpp index 82cfa45177..c1b779bb38 100644 --- a/src/kits/interface/Dragger.cpp +++ b/src/kits/interface/Dragger.cpp @@ -260,18 +260,6 @@ BDragger::Draw(BRect update) if (fIsZombie) { // TODO: should draw it differently ? } - } else if (IsVisibilityChanging()) { - if (Parent() != NULL) { - if ((Parent()->Flags() & B_DRAW_ON_CHILDREN) == 0) { - uint32 flags = Parent()->Flags(); - Parent()->SetFlags(flags | B_DRAW_ON_CHILDREN); - Parent()->Invalidate(Frame() & ConvertToParent(update)); - Parent()->SetFlags(flags); - } - } else { - SetHighColor(255, 255, 255); - FillRect(bounds); - } } } @@ -326,10 +314,7 @@ BDragger::MessageReceived(BMessage* msg) // This code is used whenever the "are draggers drawn" option is // changed. if (fRelation == TARGET_IS_CHILD) { - fTransition = true; - Draw(Bounds()); - Flush(); - fTransition = false; + Invalidate(Bounds()); } else { if ((fShelf != NULL && fShelf->AllowsDragging() && AreDraggersDrawn())