diff --git a/client.cpp b/client.cpp index e94234b1d5..a4c664adfe 100644 --- a/client.cpp +++ b/client.cpp @@ -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;