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());
|
setShade(!isShade());
|
||||||
}
|
}
|
||||||
|
|
||||||
void B2Client::resizeButtonClicked()
|
void B2Client::resizeButtonPressed()
|
||||||
{
|
{
|
||||||
performWindowOperation(ResizeOp);
|
performWindowOperation(ResizeOp);
|
||||||
}
|
}
|
||||||
|
@ -484,8 +484,8 @@ void B2Client::addButtons(const QString& s, const QString tips[],
|
||||||
if (isResizable() && !button[BtnResize]) {
|
if (isResizable() && !button[BtnResize]) {
|
||||||
button[BtnResize] = new B2Button(this, tb, tips[BtnResize]);
|
button[BtnResize] = new B2Button(this, tb, tips[BtnResize]);
|
||||||
button[BtnResize]->setPixmaps(P_RESIZE);
|
button[BtnResize]->setPixmaps(P_RESIZE);
|
||||||
connect(button[BtnResize], SIGNAL(clicked()),
|
connect(button[BtnResize], SIGNAL(pressed()),
|
||||||
this, SLOT(resizeButtonClicked()));
|
this, SLOT(resizeButtonPressed()));
|
||||||
titleLayout->addWidget(button[BtnResize]);
|
titleLayout->addWidget(button[BtnResize]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -125,7 +125,7 @@ private slots:
|
||||||
//void slotReset();
|
//void slotReset();
|
||||||
void maxButtonClicked();
|
void maxButtonClicked();
|
||||||
void shadeButtonClicked();
|
void shadeButtonClicked();
|
||||||
void resizeButtonClicked();
|
void resizeButtonPressed();
|
||||||
private:
|
private:
|
||||||
void addButtons(const QString& s, const QString tips[],
|
void addButtons(const QString& s, const QString tips[],
|
||||||
B2Titlebar* tb, QBoxLayout* titleLayout);
|
B2Titlebar* tb, QBoxLayout* titleLayout);
|
||||||
|
|
Loading…
Reference in a new issue