Fix window movement on linux.
This commit is contained in:
parent
a5de42860a
commit
cdcb09829a
|
@ -62,6 +62,7 @@ Rectangle {
|
||||||
drag.axis: Drag.XAxis
|
drag.axis: Drag.XAxis
|
||||||
drag.maximumX: window.dragMaxX
|
drag.maximumX: window.dragMaxX
|
||||||
drag.minimumX: window.dragMinX
|
drag.minimumX: window.dragMinX
|
||||||
|
drag.smoothed: true
|
||||||
onPressed: {
|
onPressed: {
|
||||||
animation.stop()
|
animation.stop()
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ NotifyWidget::NotifyWidget(int pos, const SnoreNotifier *parent) :
|
||||||
#endif
|
#endif
|
||||||
setSource(QUrl::fromEncoded("qrc:/notification.qml"));
|
setSource(QUrl::fromEncoded("qrc:/notification.qml"));
|
||||||
|
|
||||||
setFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowDoesNotAcceptFocus
|
setFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowDoesNotAcceptFocus | Qt::BypassWindowManagerHint
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
| Qt::SubWindow
|
| Qt::SubWindow
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue