some more mouse functions (raise/lower/toggle r.l.)

svn path=/trunk/kdebase/kwin/; revision=54049
This commit is contained in:
Matthias Ettrich 2000-06-22 22:10:27 +00:00
parent ead1f75144
commit 2322242681

View file

@ -1837,12 +1837,18 @@ bool Client::performMouseCommand( Options::MouseCommand command, QPoint globalPo
bool replay = FALSE;
switch (command) {
case Options::MouseRaise:
workspace()->raiseClient( this );
break;
case Options::MouseLower:
workspace()->lowerClient( this );
break;
case Options::MouseOperationsMenu:
break;
case Options::MouseToggleRaiseAndLower:
if ( workspace()->topClientOnDesktop() == this )
workspace()->lowerClient( this );
else
workspace()->raiseClient( this );
break;
case Options::MouseActivateAndRaise:
workspace()->requestFocus( this );