Correctly compare number of desktops. That fixes a problem that you couldn't click on a window on the last desktop in desktop grid.

svn path=/trunk/KDE/kdebase/workspace/; revision=1068406
This commit is contained in:
Martin Gräßlin 2010-01-01 10:24:20 +00:00
parent 3073e12f4e
commit b5d60c4711

View file

@ -809,7 +809,7 @@ EffectWindow* DesktopGridEffect::windowAt( QPoint pos ) const
int desktop;
pos = unscalePos( pos, &desktop );
if( desktop >= effects->numberOfDesktops() )
if( desktop > effects->numberOfDesktops() )
return NULL;
if( isUsingPresentWindows() )
{