move the popup before its fist show, even if the show isn't triggered by

a click, this should fix the first random position in devicenotifier
popup

svn path=/trunk/KDE/kdelibs/; revision=898214
This commit is contained in:
Marco Martin 2008-12-17 18:37:21 +00:00
parent 3d4ccc37c2
commit 1ff5d76fca

View File

@ -360,6 +360,7 @@ bool PopupApplet::eventFilter(QObject *watched, QEvent *event)
void PopupApplet::showPopup(uint popupDuration)
{
if (d->dialog && (formFactor() == Horizontal || formFactor() == Vertical)) {
d->updateDialogPosition();
d->dialog->show();
KWindowSystem::setState(d->dialog->winId(), NET::SkipTaskbar | NET::SkipPager);