This other patch appears to work, and it should not leak anything. KdeDefaultClient should be changed the same way, by the way. ------------------------------------------- --- b2client.cpp.orig Sat Nov 3 02:21:40 2001 +++ b2client.cpp Sun Mar 31 17:17:19 2002 @@ -778,16 +778,25 @@ void B2Client::menuButtonPressed() { - workspace()->clientPopup(this)-> - popup(button[BtnMenu]->mapToGlobal(button[BtnMenu]-> - rect().bottomLeft())); + static QTime t; + static B2Client* tc =3D 0; + + 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() { redraw_pixmaps(); - QColor c =3D options->colorGroup(Options::TitleBar, isActive()). - color(QColorGroup::Button); + QColor c =3D options->colorGroup(Options::TitleBar, + isActive()).color(QColorGroup::Button); for(int i =3D 0; i < BtnCount; i++) if (button[i]) { -------------------------- Luciano >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<