Revert r886439

CCBUG: 136949

svn path=/trunk/KDE/kdebase/workspace/; revision=886742
This commit is contained in:
Lucas Murray 2008-11-19 22:48:21 +00:00
parent afe4f9c0e0
commit 04f26ad6bb

View file

@ -1209,7 +1209,7 @@ void Client::setDesktop( int desktop )
{
if( desktop != NET::OnAllDesktops ) // do range check
desktop = qMax( 1, qMin( workspace()->numberOfDesktops(), desktop ));
desktop = qMax( 1, qMin( workspace()->numberOfDesktops(), rules()->checkDesktop( desktop )));
desktop = rules()->checkDesktop( desktop );
if( desk == desktop )
return;
int was_desk = desk;