Worked around the isResizable() problem: check if the window is resizable
only when initializing the decoration for a given window. CCMAIL: kwin@kde.org svn path=/trunk/kdebase/kwin/; revision=357517
This commit is contained in:
parent
6dc8a25ebe
commit
4ae63db942
2 changed files with 4 additions and 2 deletions
|
@ -403,6 +403,7 @@ void B2Client::init()
|
|||
positionButtons();
|
||||
titlebar->recalcBuffer();
|
||||
titlebar->installEventFilter(this);
|
||||
resizable = isResizable();
|
||||
}
|
||||
|
||||
void B2Client::addButtons(const QString& s, const QString tips[],
|
||||
|
@ -483,7 +484,7 @@ void B2Client::addButtons(const QString& s, const QString tips[],
|
|||
}
|
||||
break;
|
||||
case 'R': // Resize button
|
||||
if (isResizable() && !button[BtnResize]) {
|
||||
if (resizable && !button[BtnResize]) {
|
||||
button[BtnResize] = new B2Button(this, tb, tips[BtnResize]);
|
||||
button[BtnResize]->setPixmaps(P_RESIZE);
|
||||
connect(button[BtnResize], SIGNAL(pressed()),
|
||||
|
@ -503,7 +504,7 @@ bool B2Client::mustDrawHandle() const
|
|||
if (drawSmallBorders && (maximizeMode() & MaximizeVertical)) {
|
||||
return false;
|
||||
} else {
|
||||
return do_draw_handle && isResizable();
|
||||
return do_draw_handle & resizable;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -144,6 +144,7 @@ private:
|
|||
int bar_x_ofs;
|
||||
int in_unobs;
|
||||
QTime time;
|
||||
bool resizable;
|
||||
};
|
||||
|
||||
class B2ClientFactory : public QObject, public KDecorationFactory
|
||||
|
|
Loading…
Reference in a new issue