diff options
author | fiaxh <git@lightrise.org> | 2020-12-30 20:22:14 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-12-30 20:30:35 +0100 |
commit | 99e98ac8d97296b0a34351d3bc8b155b0c8fc6db (patch) | |
tree | d5274576a0b7cb1257db52937e14e1b0e8a0f6bd /main/src/ui/notifier_gnotifications.vala | |
parent | c454bd904d1b9641ed333b71e206bd253fb9e9df (diff) | |
download | dino-99e98ac8d97296b0a34351d3bc8b155b0c8fc6db.tar.gz dino-99e98ac8d97296b0a34351d3bc8b155b0c8fc6db.zip |
Set window urgency hint independent of notification setting
fixes #960
Diffstat (limited to 'main/src/ui/notifier_gnotifications.vala')
-rw-r--r-- | main/src/ui/notifier_gnotifications.vala | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/main/src/ui/notifier_gnotifications.vala b/main/src/ui/notifier_gnotifications.vala index a7aab753..31d1ffa3 100644 --- a/main/src/ui/notifier_gnotifications.vala +++ b/main/src/ui/notifier_gnotifications.vala @@ -63,15 +63,6 @@ namespace Dino.Ui { if (active_conversation_ids != null) { active_conversation_ids.add(conversation.id.to_string()); } - - // Don't set urgency hint in GNOME, produces "Window is active" notification - var desktop_env = Environment.get_variable("XDG_CURRENT_DESKTOP"); - if (desktop_env == null || !desktop_env.down().contains("gnome")) { - var app = (GLib.Application.get_default() as Application); - if (app.active_window != null) { - app.active_window.urgency_hint = true; - } - } } public async void notify_subscription_request(Conversation conversation) { |