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:
parent
be2f86a282
commit
6881aa9548
1 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue