Hello, I am in the currently toying with the b2 kwin client. I would like it to turn off the maximize button on unresizable windows, and to turn off the resize handle accordingly. My first attempts are not really usable(Maximizing the window turns it non-resizable, and the border is badly rendered), however, I added an option I have been missing: most kwin clients close the window when double clicking on the window menu button. This is consistent e.g. with what motif does. the B2 window decoration did not. the attached path corrects this (stolen from kdedefault client). Can someone commit this, if it is found useful? =3D=3D=3D=3D=3D --- b2client.cpp.orig Sat Nov 3 02:21:40 2001 +++ b2client.cpp Sat Mar 30 22:58:33 2002 @@ -778,9 +778,20 @@ void B2Client::menuButtonPressed() { - workspace()->clientPopup(this)-> - popup(button[BtnMenu]->mapToGlobal(button[BtnMenu]-> - rect().bottomLeft())); + static QTime* t =3D 0; + static B2Client* tc =3D 0; + + if (!t) t =3D new QTime; + + if (tc !=3D this || t->elapsed() > QApplication::doubleClickInterval= ()) { + workspace()->clientPopup(this)->popup( + button[BtnMenu]->mapToGlobal( + button[BtnMenu]->rect().bottomLeft())= ); + } else { + closeWindow(); + } + t->start(); + tc =3D this; } void B2Client::slotReset() =3D=3D=3D=3D=3D thank you, -- Luciano Montanaro// \x/ mikelima@virgilio.it >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<