don't show the dialog until it's position is settled which fixes the "i'm seeing flashes of kickoff at the top of the screen when i first open it". this also happens to fix a bug where sometimes a popup would show in the taskbar

BUG:177675

svn path=/trunk/KDE/kdelibs/; revision=901338
This commit is contained in:
Aaron J. Seigo 2008-12-25 08:36:01 +00:00
parent d2baf76321
commit 173a19d10d

View File

@ -467,9 +467,9 @@ void PopupAppletPrivate::togglePopup()
if (dialog->isVisible()) { if (dialog->isVisible()) {
dialog->hide(); dialog->hide();
} else { } else {
dialog->show();
updateDialogPosition(); updateDialogPosition();
KWindowSystem::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager); KWindowSystem::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
dialog->show();
} }
dialog->clearFocus(); dialog->clearFocus();