don't reset the window flags right after setting them so carefull; don't activate the window if we're passive and bypassing window management

svn path=/trunk/KDE/kdelibs/; revision=979098
This commit is contained in:
Aaron J. Seigo 2009-06-08 22:15:48 +00:00
parent 75e7968ae5
commit 921f3a436b

View File

@ -305,7 +305,6 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
}
dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
KWindowSystem::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
dialog->installEventFilter(q);
@ -528,6 +527,7 @@ void PopupAppletPrivate::internalTogglePopup()
ToolTipManager::self()->hide(q);
updateDialogPosition();
KWindowSystem::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
/**
@ -555,7 +555,9 @@ void PopupAppletPrivate::internalTogglePopup()
dialog->show();
}
KWindowSystem::activateWindow(dialog->winId());
if (!(dialog->windowFlags() & Qt::X11BypassWindowManagerHint)) {
KWindowSystem::activateWindow(dialog->winId());
}
}
}