checks rootLayer Pointer, since offscreen windows are not attached to RootLayer. This shouldn't have been a problem though since Offscreen windows were never Show()n
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13515 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -241,10 +241,10 @@ ServerWindow::Show()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
RootLayer* rootLayer = fWinBorder->GetRootLayer();
|
RootLayer* rootLayer = fWinBorder->GetRootLayer();
|
||||||
|
if (rootLayer && rootLayer->Lock()) {
|
||||||
rootLayer->Lock();
|
rootLayer->ShowWinBorder(fWinBorder);
|
||||||
rootLayer->ShowWinBorder(fWinBorder);
|
rootLayer->Unlock();
|
||||||
rootLayer->Unlock();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Hides the window's WinBorder
|
//! Hides the window's WinBorder
|
||||||
@@ -258,10 +258,10 @@ ServerWindow::Hide()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
RootLayer* rootLayer = fWinBorder->GetRootLayer();
|
RootLayer* rootLayer = fWinBorder->GetRootLayer();
|
||||||
|
if (rootLayer && rootLayer->Lock()) {
|
||||||
rootLayer->Lock();
|
rootLayer->HideWinBorder(fWinBorder);
|
||||||
rootLayer->HideWinBorder(fWinBorder);
|
rootLayer->Unlock();
|
||||||
rootLayer->Unlock();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -650,7 +650,6 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
STRACE(("DONE: ServerWindow %s: Message AS_DELETE_LAYER: Parent: %s Layer: %s\n", fTitle, parent->Name(), fCurrentLayer->Name()));
|
STRACE(("DONE: ServerWindow %s: Message AS_DELETE_LAYER: Parent: %s Layer: %s\n", fTitle, parent->Name(), fCurrentLayer->Name()));
|
||||||
|
|
||||||
delete fCurrentLayer;
|
delete fCurrentLayer;
|
||||||
// TODO: Does the client know about this change?
|
|
||||||
fCurrentLayer = parent;
|
fCurrentLayer = parent;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user