diff --git a/effects/desktopgrid.cpp b/effects/desktopgrid.cpp index 18b7cd5eab..9f725c6185 100644 --- a/effects/desktopgrid.cpp +++ b/effects/desktopgrid.cpp @@ -271,7 +271,7 @@ QRect DesktopGridEffect::desktopRect( int desktop, bool scaled ) const effects->calcDesktopLayout( &x, &y, &orientation ); --desktop; // make it start with 0 QRect rect; - if( orientation == Qt::Vertical ) + if( orientation == Qt::Horizontal ) rect = QRect(( desktop % x ) * displayWidth(), ( desktop / x ) * displayHeight(), displayWidth(), displayHeight()); else