modified the way top_view sends its data to app_server. It now send _all_ is data
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7144 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1794,9 +1794,10 @@ void BWindow::Show(){
|
|||||||
if (fShowLevel == 0){
|
if (fShowLevel == 0){
|
||||||
STRACE(("BWindow(%s): sending AS_SHOW_WINDOW message...\n", Name() ));
|
STRACE(("BWindow(%s): sending AS_SHOW_WINDOW message...\n", Name() ));
|
||||||
if ( !isLocked ) Lock();
|
if ( !isLocked ) Lock();
|
||||||
|
top_view->Show();
|
||||||
session->WriteInt32( AS_SHOW_WINDOW );
|
session->WriteInt32( AS_SHOW_WINDOW );
|
||||||
session->Sync( );
|
session->Sync();
|
||||||
if ( !isLocked) Unlock();
|
if ( !isLocked ) Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
// if it's the fist time Show() is called... start the Looper thread.
|
// if it's the fist time Show() is called... start the Looper thread.
|
||||||
@@ -1814,6 +1815,7 @@ void BWindow::Show(){
|
|||||||
void BWindow::Hide(){
|
void BWindow::Hide(){
|
||||||
if (fShowLevel == 0){
|
if (fShowLevel == 0){
|
||||||
Lock();
|
Lock();
|
||||||
|
top_view->Hide();
|
||||||
session->WriteInt32( AS_HIDE_WINDOW );
|
session->WriteInt32( AS_HIDE_WINDOW );
|
||||||
session->Sync();
|
session->Sync();
|
||||||
Unlock();
|
Unlock();
|
||||||
@@ -2272,7 +2274,7 @@ void BWindow::decomposeType(window_type type,
|
|||||||
|
|
||||||
void BWindow::BuildTopView(){
|
void BWindow::BuildTopView(){
|
||||||
|
|
||||||
top_view = new BView( fFrame.OffsetToCopy(0,0), "top_view",
|
top_view = new BView( fFrame, "top_view",
|
||||||
B_FOLLOW_ALL, B_WILL_DRAW);
|
B_FOLLOW_ALL, B_WILL_DRAW);
|
||||||
top_view->top_level_view = true;
|
top_view->top_level_view = true;
|
||||||
top_view->fShowLevel = 1;
|
top_view->fShowLevel = 1;
|
||||||
@@ -2283,15 +2285,10 @@ void BWindow::BuildTopView(){
|
|||||||
|
|
||||||
// send top_view's information to app_server
|
// send top_view's information to app_server
|
||||||
session->WriteInt32( AS_LAYER_CREATE_ROOT );
|
session->WriteInt32( AS_LAYER_CREATE_ROOT );
|
||||||
session->WriteInt32( _get_object_token_( top_view ) );
|
|
||||||
session->WriteRect( fFrame );//top_view->Frame() );
|
|
||||||
session->WriteInt32( top_view->ResizingMode() );
|
|
||||||
session->WriteInt32( top_view->Flags() );
|
|
||||||
session->WriteString( top_view->Name() );
|
|
||||||
// we DO NOT send our current state; the server knows the default values!
|
|
||||||
session->Sync();
|
|
||||||
|
|
||||||
fLastViewToken = _get_object_token_( top_view );
|
fLastViewToken = _get_object_token_( top_view );
|
||||||
|
|
||||||
|
top_view->attachView(top_view);
|
||||||
|
|
||||||
STRACE(("BuildTopView ended\n"));
|
STRACE(("BuildTopView ended\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user