SVN_SILENT: a code sketch

svn path=/trunk/KDE/kdelibs/; revision=954622
This commit is contained in:
Aaron J. Seigo 2009-04-16 04:54:19 +00:00
parent 0523f17be2
commit 8cb32d8ff9

View File

@ -527,6 +527,25 @@ void PopupAppletPrivate::internalTogglePopup()
updateDialogPosition();
KWindowSystem::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
/**
a sketch of what it might look like to do the animated show/hide using the WM
NETWinInfo ni(QX11Info::display(), dialog->winId(), QX11Info::appRootWindow(), 0);
NETRect r;
QRect rect = q->geometry().toRect();
rect.setTopLeft(q->view()->mapToGlobal(rect.topLeft()));
if (rect.isValid())
{
r.pos.x = rect.x();
r.pos.y = rect.y();
r.size.width = rect.width();
r.size.height = rect.height();
}
ni.setIconGeometry(r);
KWindowSystem::minimizeWindow(dialog->winId());
KWindowSystem::unminimizeWindow(dialog->winId());
*/
if (q->location() != Floating) {
dialog->animatedShow(locationToDirection(q->location()));
} else {