Cleanup window flags for snore backend.

This commit is contained in:
Hannah von Reth 2015-10-05 17:34:19 +02:00
parent ccbe90d202
commit 04ea5aad47
1 changed files with 4 additions and 6 deletions

View File

@ -52,13 +52,11 @@ NotifyWidget::NotifyWidget(int id, const SnoreNotifier *parent) :
engine->load(QUrl::fromEncoded("qrc:/notification.qml"));
m_window = qobject_cast<QQuickWindow *>(engine->rootObjects().value(0));
// TODO: Qt::BypassWindowManagerHint is needed on linux to make it possible to animate the Window.
// It looks like there is a Qt bug wich make some Windows with this flag invisible.
m_window->setFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowDoesNotAcceptFocus | Qt::BypassWindowManagerHint
// TODO: It looks like there is a Qt bug wich make some Windows with this flag invisible in some cases...(Tested: Kubuntu willy)
m_window->setFlags(Qt::WindowStaysOnTopHint | Qt::ToolTip
#ifdef Q_OS_MAC
| Qt::SubWindow
#else
| Qt::Tool
// TODO: is this needed or is ToolTip working?
//| Qt::SubWindow
#endif
);