Made ServerWindow::_HandleDirectConnection() a public method. It will be called from WinBorder too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14773 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3a222bcbec
commit
0266d3fd18
@ -273,7 +273,7 @@ ServerWindow::Show()
|
||||
}
|
||||
|
||||
if (fDirectWindowData != NULL)
|
||||
_HandleDirectConnection(B_DIRECT_START|B_BUFFER_RESET);
|
||||
HandleDirectConnection(B_DIRECT_START|B_BUFFER_RESET);
|
||||
}
|
||||
|
||||
|
||||
@ -288,7 +288,7 @@ ServerWindow::Hide()
|
||||
return;
|
||||
|
||||
if (fDirectWindowData != NULL)
|
||||
_HandleDirectConnection(B_DIRECT_STOP);
|
||||
HandleDirectConnection(B_DIRECT_STOP);
|
||||
|
||||
RootLayer* rootLayer = fWinBorder->GetRootLayer();
|
||||
if (rootLayer && rootLayer->Lock()) {
|
||||
@ -2107,7 +2107,7 @@ ServerWindow::_EnableDirectWindowMode()
|
||||
|
||||
|
||||
void
|
||||
ServerWindow::_HandleDirectConnection(int bufferState, int driverState)
|
||||
ServerWindow::HandleDirectConnection(int bufferState, int driverState)
|
||||
{
|
||||
if (fDirectWindowData == NULL)
|
||||
return;
|
||||
|
@ -94,6 +94,8 @@ public:
|
||||
|
||||
// related thread/team_id(s).
|
||||
inline team_id ClientTeam() const { return fClientTeam; }
|
||||
|
||||
void HandleDirectConnection(int bufferState = -1, int driverState = -1);
|
||||
|
||||
// server "private" - try not to use.
|
||||
inline int32 ClientToken() const { return fHandlerToken; }
|
||||
@ -118,7 +120,6 @@ private:
|
||||
virtual void _GetLooperName(char* name, size_t size);
|
||||
|
||||
status_t _EnableDirectWindowMode();
|
||||
void _HandleDirectConnection(int bufferState = -1, int driverState = -1);
|
||||
|
||||
// TODO: Move me elsewhere
|
||||
status_t PictureToRegion(ServerPicture *picture,
|
||||
|
@ -181,8 +181,7 @@ WinBorder::ResizeBy(float x, float y)
|
||||
{
|
||||
STRACE(("WinBorder(%s)::ResizeBy()\n", Name()));
|
||||
|
||||
if (!_ResizeBy(x, y))
|
||||
return;
|
||||
_ResizeBy(x, y);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user