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,9 +704,11 @@ bool Client::performMouseCommand( Options::MouseCommand command, const QPoint &g
workspace()->windowToNextDesktop( this ); workspace()->windowToNextDesktop( this );
break; break;
case Options::MouseOpacityMore: case Options::MouseOpacityMore:
if( !isDesktop() ) // No point in changing the opacity of the desktop
setOpacity( qMin( opacity() + 0.1, 1.0 )); setOpacity( qMin( opacity() + 0.1, 1.0 ));
break; break;
case Options::MouseOpacityLess: case Options::MouseOpacityLess:
if( !isDesktop() ) // No point in changing the opacity of the desktop
setOpacity( qMax( opacity() - 0.1, 0.0 )); setOpacity( qMax( opacity() - 0.1, 0.0 ));
break; break;
case Options::MouseNothing: case Options::MouseNothing: