mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
fix notification displaying linphone window on macos
This commit is contained in:
parent
f0a4b7943c
commit
972a932a1f
1 changed files with 4 additions and 4 deletions
|
|
@ -172,8 +172,8 @@ bool Notifier::createNotification(Notifier::NotificationType type, QVariantMap d
|
||||||
// Don't use Popup for flags : it could lead to error in geometry. On Mac, Using Tool ensure
|
// Don't use Popup for flags : it could lead to error in geometry. On Mac, Using Tool ensure
|
||||||
// to have the Window on Top and fullscreen independant
|
// to have the Window on Top and fullscreen independant
|
||||||
window->setFlags((showAsTool ? Qt::Tool : Qt::WindowStaysOnTopHint) |
|
window->setFlags((showAsTool ? Qt::Tool : Qt::WindowStaysOnTopHint) |
|
||||||
Qt::FramelessWindowHint | Qt::WindowDoesNotAcceptFocus);
|
Qt::FramelessWindowHint);
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX || Q_OS_WIN
|
||||||
window->setFlag(Qt::WindowDoesNotAcceptFocus);
|
window->setFlag(Qt::WindowDoesNotAcceptFocus);
|
||||||
#endif
|
#endif
|
||||||
// for (auto it = data.begin(); it != data.end(); ++it)
|
// for (auto it = data.begin(); it != data.end(); ++it)
|
||||||
|
|
@ -243,14 +243,14 @@ void Notifier::showNotification(QQuickWindow *notification, int timeout) {
|
||||||
lInfo() << log().arg("Windows : screen unlocked, force raising notification");
|
lInfo() << log().arg("Windows : screen unlocked, force raising notification");
|
||||||
notification->hide();
|
notification->hide();
|
||||||
notification->showNormal();
|
notification->showNormal();
|
||||||
notification->raise();
|
// notification->raise();
|
||||||
lInfo() << log().arg("Notification visibility : visible =") << notification->isVisible()
|
lInfo() << log().arg("Notification visibility : visible =") << notification->isVisible()
|
||||||
<< "visibility =" << notification->visibility();
|
<< "visibility =" << notification->visibility();
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
notification->hide();
|
notification->hide();
|
||||||
notification->showNormal();
|
notification->showNormal();
|
||||||
notification->raise();
|
// notification->raise();
|
||||||
lInfo() << log().arg("Notification visibility : visible =") << notification->isVisible()
|
lInfo() << log().arg("Notification visibility : visible =") << notification->isVisible()
|
||||||
<< "visibility =" << notification->visibility() << "size =" << notification->width()
|
<< "visibility =" << notification->visibility() << "size =" << notification->width()
|
||||||
<< notification->height();
|
<< notification->height();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue