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:
Adi Oanca 2005-04-21 18:59:14 +00:00
parent d53639ce2e
commit 6141cc1d5a

View File

@ -1702,25 +1702,24 @@ window_look BWindow::Look() const
status_t BWindow::SetFeel(window_feel feel)
{
// TODO: See what happens when a window that is part of a subset, changes its
// feel. Should it be removed from the subset?
int32 rCode;
if (!( feel == B_NORMAL_WINDOW_FEEL
|| feel == B_MODAL_SUBSET_WINDOW_FEEL
|| feel == B_MODAL_APP_WINDOW_FEEL
|| 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();
fLink->StartMessage( AS_SET_FEEL );
fLink->Attach<int32>( (int32)feel );
fLink->Flush();
fLink->GetNextReply( &rCode );
Unlock();
if (rCode == SERVER_TRUE)
{
fFeel = feel;
return B_OK;
}
fFeel = feel;
return B_ERROR;
return B_OK;
}
//------------------------------------------------------------------------------