Simplify client by using the new maximize() method.
svn path=/trunk/kdebase/kwin/; revision=331795
This commit is contained in:
parent
3bc4193b8a
commit
0311c26276
2 changed files with 2 additions and 13 deletions
|
@ -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()
|
||||
|
|
|
@ -56,7 +56,7 @@ private:
|
|||
|
||||
public:
|
||||
B2Client* client;
|
||||
int last_button;
|
||||
ButtonState last_button;
|
||||
int realizeButtons;
|
||||
bool hover;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue