Correct implementation of r886439.

BUG: 136949

svn path=/trunk/KDE/kdebase/workspace/; revision=888667
This commit is contained in:
Lucas Murray 2008-11-25 03:23:59 +00:00
parent 2bb64077e7
commit 9dc6216729

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 = rules()->checkDesktop( desktop );
desktop = qMin( workspace()->numberOfDesktops(), rules()->checkDesktop( desktop ));
if( desk == desktop )
return;
int was_desk = desk;