SVN_SILENT: code style

svn path=/trunk/KDE/kdebase/workspace/; revision=1126063
icc-effect-5.14.5
Chani Armitage 2010-05-13 04:56:38 +00:00
parent a1bebb7000
commit 741e0cdecd
1 changed files with 9 additions and 6 deletions

View File

@ -1569,21 +1569,24 @@ void Client::setOnAllDesktops( bool b )
}
/**
* if @p b is true, sets on all activities.
* if @p on is true, sets on all activities.
* if it's false, sets it to only be on the current activity
*/
void Client::setOnAllActivities( bool b )
void Client::setOnAllActivities( bool on )
{
if( b == isOnAllActivities() )
if( on == isOnAllActivities() )
return;
if( b ) {
if( on )
{
activityList.clear();
//FIXME update transients
} else {
}
else
{
setOnActivity(Workspace::self()->currentActivity(), true);
//FIXME update transients
return;
}
}
//FIXME c&p'd from setOnActivity, I probably need more code and should probably factor it out
workspace()->updateFocusChains( this, Workspace::FocusChainMakeFirst );