Adjusted SetFeel() to current server implementation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12457 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1702,25 +1702,24 @@ window_look BWindow::Look() const
|
|||||||
|
|
||||||
status_t BWindow::SetFeel(window_feel feel)
|
status_t BWindow::SetFeel(window_feel feel)
|
||||||
{
|
{
|
||||||
// TODO: See what happens when a window that is part of a subset, changes its
|
if (!( feel == B_NORMAL_WINDOW_FEEL
|
||||||
// feel. Should it be removed from the subset?
|
|| feel == B_MODAL_SUBSET_WINDOW_FEEL
|
||||||
|
|| feel == B_MODAL_APP_WINDOW_FEEL
|
||||||
int32 rCode;
|
|| feel == B_MODAL_ALL_WINDOW_FEEL
|
||||||
|
|| feel == B_FLOATING_SUBSET_WINDOW_FEEL
|
||||||
|
|| feel == B_FLOATING_APP_WINDOW_FEEL
|
||||||
|
|| feel == B_FLOATING_ALL_WINDOW_FEEL))
|
||||||
|
return B_ERROR;
|
||||||
|
|
||||||
Lock();
|
Lock();
|
||||||
fLink->StartMessage( AS_SET_FEEL );
|
fLink->StartMessage( AS_SET_FEEL );
|
||||||
fLink->Attach<int32>( (int32)feel );
|
fLink->Attach<int32>( (int32)feel );
|
||||||
fLink->Flush();
|
fLink->Flush();
|
||||||
fLink->GetNextReply( &rCode );
|
|
||||||
Unlock();
|
Unlock();
|
||||||
|
|
||||||
if (rCode == SERVER_TRUE)
|
fFeel = feel;
|
||||||
{
|
|
||||||
fFeel = feel;
|
|
||||||
return B_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
return B_ERROR;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user