Interface Kit: remove more workarounds for BDragger

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 <[email protected]>
This commit is contained in:
X512
2020-01-19 18:25:22 +00:00
committed by Stephan Aßmus
parent c4a686d8d1
commit 59b700d086
+1 -16
View File
@@ -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())