Resize should work on button press, not on click.
svn path=/trunk/kdebase/kwin/; revision=332574
This commit is contained in:
parent
b4c946d132
commit
e94ef322f8
2 changed files with 4 additions and 4 deletions
|
@ -307,7 +307,7 @@ void B2Client::shadeButtonClicked()
|
|||
setShade(!isShade());
|
||||
}
|
||||
|
||||
void B2Client::resizeButtonClicked()
|
||||
void B2Client::resizeButtonPressed()
|
||||
{
|
||||
performWindowOperation(ResizeOp);
|
||||
}
|
||||
|
@ -484,8 +484,8 @@ void B2Client::addButtons(const QString& s, const QString tips[],
|
|||
if (isResizable() && !button[BtnResize]) {
|
||||
button[BtnResize] = new B2Button(this, tb, tips[BtnResize]);
|
||||
button[BtnResize]->setPixmaps(P_RESIZE);
|
||||
connect(button[BtnResize], SIGNAL(clicked()),
|
||||
this, SLOT(resizeButtonClicked()));
|
||||
connect(button[BtnResize], SIGNAL(pressed()),
|
||||
this, SLOT(resizeButtonPressed()));
|
||||
titleLayout->addWidget(button[BtnResize]);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -125,7 +125,7 @@ private slots:
|
|||
//void slotReset();
|
||||
void maxButtonClicked();
|
||||
void shadeButtonClicked();
|
||||
void resizeButtonClicked();
|
||||
void resizeButtonPressed();
|
||||
private:
|
||||
void addButtons(const QString& s, const QString tips[],
|
||||
B2Titlebar* tb, QBoxLayout* titleLayout);
|
||||
|
|
Loading…
Reference in a new issue