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:
Stefano Ceccherini
2005-11-08 08:32:32 +00:00
parent 3a222bcbec
commit 0266d3fd18
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -273,7 +273,7 @@ ServerWindow::Show()
} }
if (fDirectWindowData != NULL) if (fDirectWindowData != NULL)
_HandleDirectConnection(B_DIRECT_START|B_BUFFER_RESET); HandleDirectConnection(B_DIRECT_START|B_BUFFER_RESET);
} }
@@ -288,7 +288,7 @@ ServerWindow::Hide()
return; return;
if (fDirectWindowData != NULL) if (fDirectWindowData != NULL)
_HandleDirectConnection(B_DIRECT_STOP); HandleDirectConnection(B_DIRECT_STOP);
RootLayer* rootLayer = fWinBorder->GetRootLayer(); RootLayer* rootLayer = fWinBorder->GetRootLayer();
if (rootLayer && rootLayer->Lock()) { if (rootLayer && rootLayer->Lock()) {
@@ -2107,7 +2107,7 @@ ServerWindow::_EnableDirectWindowMode()
void void
ServerWindow::_HandleDirectConnection(int bufferState, int driverState) ServerWindow::HandleDirectConnection(int bufferState, int driverState)
{ {
if (fDirectWindowData == NULL) if (fDirectWindowData == NULL)
return; return;
+2 -1
View File
@@ -94,6 +94,8 @@ public:
// related thread/team_id(s). // related thread/team_id(s).
inline team_id ClientTeam() const { return fClientTeam; } inline team_id ClientTeam() const { return fClientTeam; }
void HandleDirectConnection(int bufferState = -1, int driverState = -1);
// server "private" - try not to use. // server "private" - try not to use.
inline int32 ClientToken() const { return fHandlerToken; } inline int32 ClientToken() const { return fHandlerToken; }
@@ -118,7 +120,6 @@ private:
virtual void _GetLooperName(char* name, size_t size); virtual void _GetLooperName(char* name, size_t size);
status_t _EnableDirectWindowMode(); status_t _EnableDirectWindowMode();
void _HandleDirectConnection(int bufferState = -1, int driverState = -1);
// TODO: Move me elsewhere // TODO: Move me elsewhere
status_t PictureToRegion(ServerPicture *picture, status_t PictureToRegion(ServerPicture *picture,
+1 -2
View File
@@ -181,8 +181,7 @@ WinBorder::ResizeBy(float x, float y)
{ {
STRACE(("WinBorder(%s)::ResizeBy()\n", Name())); STRACE(("WinBorder(%s)::ResizeBy()\n", Name()));
if (!_ResizeBy(x, y)) _ResizeBy(x, y);
return;
} }