diff --git a/tools/chatgui/src/message_notification.cpp b/tools/chatgui/src/message_notification.cpp index b6a8d24e..883d7d23 100644 --- a/tools/chatgui/src/message_notification.cpp +++ b/tools/chatgui/src/message_notification.cpp @@ -91,6 +91,7 @@ void MessageNotification::showMessage(const QString& target, const QString& send GUI_DEBUG("notification: recreated Wayland surface for current desktop target=%s", qPrintable(target)); } m_hideTimer.stop(); + m_activity->stop(); m_target = target; m_body->setText(QCoreApplication::translate("ChatGui", "New message from %1").arg(sender) + '\n' + channel); setFixedWidth(qMin(360, qMax(1, area.width() - 24))); @@ -105,6 +106,7 @@ void MessageNotification::showMessage(const QString& target, const QString& send move(x, y); setDesktopScope(); show(); + setDesktopScope(); // Подтверждаем область после MapRequest, если WM заменил предварительную подсказку. m_activity->start(); GUI_INFO("notification: %s target=%s screen=%s position=%d,%d tray_anchor=%d waiting_for_activity", replacing ? "updated" : "shown", qPrintable(target), qPrintable(screen->name()), x, y, int(!trayGeometry.isEmpty()));