MoveToFront() returned 'invalidate' for a floating window when it shouldn't; window was already in front as possible.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11877 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca 2005-03-17 17:36:30 +00:00
parent 494d1b2a5a
commit 943ba1b132

View File

@ -691,6 +691,10 @@ STRACE(("W(%ld)::ShowWinBorder(%s) \n", fID, winBorder? winBorder->GetName(): "N
// and modal windows contains our window.
if (fFrontItem && fFrontItem->layerPtr->Level() == B_NORMAL)
{
// if this winBorder is the focus it is already the first among floating app windows.
if (fFocusItem && fFocusItem->layerPtr == winBorder)
break;
ListData *itemThis = NULL;
// remove from B_NORMAL's list.
if (fFrontItem->layerPtr->fFMWList.RemoveItem(winBorder))