New anim for qwertz, it's no. 2, so IconifyAnimationStyle=2 in [WM]

section of kdeglobals will enable it.

svn path=/trunk/kdebase/kwin/; revision=69146
icc-effect-5.14.5
Rik Hemsley 2000-10-28 02:32:07 +00:00
parent 0ed57b61e0
commit 91d2ddc0fc
2 changed files with 42 additions and 1 deletions

View File

@ -487,6 +487,48 @@ void Manager::animate(bool iconify, int style)
}
break;
case 2:
{
// KVirc style ? Maybe. For qwertz.
if (!iconify) // No animation for restore.
return;
// Go away quick.
hide();
qApp->syncX();
int stepCount = 12;
QRect r(geometry());
int dx = r.width() / (stepCount * 2);
int dy = r.height() / (stepCount * 2);
QPainter p(workspace()->desktopWidget());
p.setRasterOp(Qt::NotROP);
for (int step = 0; step < stepCount; step++) {
r.moveBy(dx, dy);
r.setWidth(r.width() - 2 * dx);
r.setHeight(r.height() - 2 * dy);
XGrabServer(qt_xdisplay());
p.drawRect(r);
p.flush();
usleep(200);
p.drawRect(r);
XUngrabServer(qt_xdisplay());
kapp->processEvents();
}
}
break;
default:
{
NETRect r = netWinInfo()->iconGeometry();

View File

@ -439,7 +439,6 @@ Static::update()
// -------------------------------------------------------------------------
// Button backgrounds
// -------------------------------------------------------------------------
qDebug("buttonSize == %d", buttonSize);
buttonSize -=2;