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,10 +704,12 @@ bool Client::performMouseCommand( Options::MouseCommand command, const QPoint &g
|
||||||
workspace()->windowToNextDesktop( this );
|
workspace()->windowToNextDesktop( this );
|
||||||
break;
|
break;
|
||||||
case Options::MouseOpacityMore:
|
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;
|
break;
|
||||||
case Options::MouseOpacityLess:
|
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;
|
break;
|
||||||
case Options::MouseNothing:
|
case Options::MouseNothing:
|
||||||
replay = true;
|
replay = true;
|
||||||
|
|
Loading…
Reference in a new issue