Correct implementation of r886439.
BUG: 136949 svn path=/trunk/KDE/kdebase/workspace/; revision=888667
This commit is contained in:
parent
2bb64077e7
commit
9dc6216729
1 changed files with 1 additions and 1 deletions
|
@ -1209,7 +1209,7 @@ void Client::setDesktop( int desktop )
|
||||||
{
|
{
|
||||||
if( desktop != NET::OnAllDesktops ) // do range check
|
if( desktop != NET::OnAllDesktops ) // do range check
|
||||||
desktop = qMax( 1, qMin( workspace()->numberOfDesktops(), desktop ));
|
desktop = qMax( 1, qMin( workspace()->numberOfDesktops(), desktop ));
|
||||||
desktop = rules()->checkDesktop( desktop );
|
desktop = qMin( workspace()->numberOfDesktops(), rules()->checkDesktop( desktop ));
|
||||||
if( desk == desktop )
|
if( desk == desktop )
|
||||||
return;
|
return;
|
||||||
int was_desk = desk;
|
int was_desk = desk;
|
||||||
|
|
Loading…
Reference in a new issue