diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index 7f77c0235..b52191ae2 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -10,8 +10,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "platform/linux/specific_linux.h" #include "history/history.h" #include "lang/lang_keys.h" +#include "mainwindow.h" #include "facades.h" +#include #ifndef TDESKTOP_DISABLE_DBUS_INTEGRATION #include #include @@ -21,6 +23,15 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL namespace Platform { namespace Notifications { +void FlashBounce() { + auto window = App::wnd(); + if (!window) { + return; + } + + QApplication::alert(window); +} + #ifndef TDESKTOP_DISABLE_DBUS_INTEGRATION namespace { diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.h b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.h index ef641b4a9..dcda340bf 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.h +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.h @@ -27,9 +27,6 @@ inline bool SkipToast() { return false; } -inline void FlashBounce() { -} - #ifndef TDESKTOP_DISABLE_DBUS_INTEGRATION class NotificationData : public QObject { Q_OBJECT