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:
parent
3073e12f4e
commit
b5d60c4711
1 changed files with 1 additions and 1 deletions
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue