Fix orientation.
svn path=/trunk/KDE/kdebase/workspace/; revision=683149
This commit is contained in:
parent
08de0fc63f
commit
d3c8229599
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue