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:
parent
3d4ccc37c2
commit
1ff5d76fca
@ -360,6 +360,7 @@ bool PopupApplet::eventFilter(QObject *watched, QEvent *event)
|
|||||||
void PopupApplet::showPopup(uint popupDuration)
|
void PopupApplet::showPopup(uint popupDuration)
|
||||||
{
|
{
|
||||||
if (d->dialog && (formFactor() == Horizontal || formFactor() == Vertical)) {
|
if (d->dialog && (formFactor() == Horizontal || formFactor() == Vertical)) {
|
||||||
|
d->updateDialogPosition();
|
||||||
d->dialog->show();
|
d->dialog->show();
|
||||||
KWindowSystem::setState(d->dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
|
KWindowSystem::setState(d->dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user