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 <superstippi@gmx.de>
This commit is contained in:
X512 2020-01-19 23:41:50 +09:00 committed by Stephan Aßmus
parent 82f610c6ab
commit c4a686d8d1
1 changed files with 1 additions and 1 deletions

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();
}
}