Interface kit: fix displaying draggers when they were initially hidden

IsHidden(this) should be used instead of IsHidden() because IsHidden() return
true if window is hidden (at moment of creation for example).

Fixes #15646.

Change-Id: I08c8bacd634139dd62fb239e16cb80f512e4be6d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2128
Reviewed-by: Stephan Aßmus <[email protected]>
This commit is contained in:
X512
2020-01-19 18:22:41 +00:00
committed by Stephan Aßmus
parent 82f610c6ab
commit c4a686d8d1
+1 -1
View File
@@ -658,7 +658,7 @@ BDragger::_AddToList()
// The dragger is not shown - but we can't hide us in case we're the
// parent of the actual target view (because then you couldn't see
// it anymore).
if (fRelation != TARGET_IS_CHILD && !IsHidden())
if (fRelation != TARGET_IS_CHILD && !IsHidden(this))
Hide();
}
}