Simplify client by using the new maximize() method.

svn path=/trunk/kdebase/kwin/; revision=331795
This commit is contained in:
Luciano Montanaro 2004-07-22 16:30:07 +00:00
parent 3bc4193b8a
commit 0311c26276
2 changed files with 2 additions and 13 deletions

View file

@ -299,18 +299,7 @@ QValueList< B2ClientFactory::BorderSize > B2ClientFactory::borderSizes() const
void B2Client::maxButtonClicked()
{
switch (button[BtnMax]->last_button) {
case MidButton:
maximize(maximizeMode() ^ MaximizeVertical);
break;
case RightButton:
maximize(maximizeMode() ^ MaximizeHorizontal);
break;
case LeftButton:
default:
maximize(maximizeMode() == MaximizeFull ? MaximizeRestore : MaximizeFull);
break;
}
maximize(button[BtnMax]->last_button);
}
void B2Client::shadeButtonClicked()

View file

@ -56,7 +56,7 @@ private:
public:
B2Client* client;
int last_button;
ButtonState last_button;
int realizeButtons;
bool hover;
};