From b5d60c4711f7c48b429c7c39dfdaff227bcac45e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 1 Jan 2010 10:24:20 +0000 Subject: [PATCH] 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 --- effects/desktopgrid/desktopgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index 8d94852de6..711ab4cab2 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -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() ) {