It's slashdot feature request time!

+       HMaximizeOp,
+       VMaximizeOp,
+       LowerOp,

svn path=/trunk/kdebase/kwin/; revision=84551
This commit is contained in:
Waldo Bastian 2001-02-27 07:19:52 +00:00
parent eeb5bb19e3
commit d577f604e2
3 changed files with 18 additions and 0 deletions

View file

@ -236,6 +236,12 @@ Options::WindowOperation Options::windowOperation(const QString &name){
return ShadeOp;
else if (name == "Operations")
return OperationsOp;
else if (name == "Maximize (vertical only)")
return VMaximizeOp;
else if (name == "Maximize (horizontal only)")
return HMaximizeOp;
else if (name == "Lower")
return LowerOp;
return NoOp;
}

View file

@ -213,6 +213,9 @@ public:
StaysOnTopOp,
OperationsOp,
ToggleStoreSettingsOp,
HMaximizeOp,
VMaximizeOp,
LowerOp,
NoOp
};

View file

@ -1294,6 +1294,15 @@ void Workspace::performWindowOperation( Client* c, Options::WindowOperation op )
case Options::ToggleStoreSettingsOp:
c->setStoreSettings( !c->storeSettings() );
break;
case Options::HMaximizeOp:
c->maximize(Client::MaximizeHorizontal);
break;
case Options::VMaximizeOp:
c->maximize(Client::MaximizeVertical);
break;
case Options::LowerOp:
lowerClient(c);
break;
default:
break;
}