diff --git a/popupapplet.cpp b/popupapplet.cpp index 40c6b6a71..d4cf559d3 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -292,24 +292,23 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) dialog->setGraphicsWidget(gWidget); gWidget->resize(gWidget->preferredSize()); } - dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | (gWidget->windowFlags() & Qt::X11BypassWindowManagerHint)); + dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | (gWidget->windowFlags() & Qt::X11BypassWindowManagerHint)); } else if (qWidget) { QVBoxLayout *l_layout = new QVBoxLayout(dialog); l_layout->setSpacing(0); l_layout->setMargin(0); l_layout->addWidget(qWidget); dialog->adjustSize(); - dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | (qWidget->windowFlags() & Qt::X11BypassWindowManagerHint)); + dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | (qWidget->windowFlags() & Qt::X11BypassWindowManagerHint)); + } else { + dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); } - else{ - dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); - } + dialog->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); KWindowSystem::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager); dialog->installEventFilter(q); - QObject::connect(dialog, SIGNAL(dialogResized()), q, SLOT(dialogSizeChanged())); QObject::connect(dialog, SIGNAL(dialogVisible(bool)), q, SLOT(dialogStatusChanged(bool))); }