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