Don't allow changing the opacity of the desktop with the mouse shortcut.

svn path=/trunk/KDE/kdebase/workspace/; revision=902059
This commit is contained in:
Lucas Murray 2008-12-27 14:36:40 +00:00
parent be2f86a282
commit 6881aa9548

View file

@ -704,10 +704,12 @@ bool Client::performMouseCommand( Options::MouseCommand command, const QPoint &g
workspace()->windowToNextDesktop( this );
break;
case Options::MouseOpacityMore:
setOpacity( qMin( opacity() + 0.1, 1.0 ));
if( !isDesktop() ) // No point in changing the opacity of the desktop
setOpacity( qMin( opacity() + 0.1, 1.0 ));
break;
case Options::MouseOpacityLess:
setOpacity( qMax( opacity() - 0.1, 0.0 ));
if( !isDesktop() ) // No point in changing the opacity of the desktop
setOpacity( qMax( opacity() - 0.1, 0.0 ));
break;
case Options::MouseNothing:
replay = true;