2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-18 14:00:09 +00:00

Using QApplication::alert for taskbar flashing on Linux

This commit is contained in:
RadRussianRus
2020-02-29 01:54:07 +03:00
parent 242462b142
commit d70c1312c3
2 changed files with 11 additions and 3 deletions

View File

@@ -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 <QtWidgets/QApplication>
#ifndef TDESKTOP_DISABLE_DBUS_INTEGRATION
#include <QtCore/QVersionNumber>
#include <QtDBus/QDBusReply>
@@ -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 {