From 99e98ac8d97296b0a34351d3bc8b155b0c8fc6db Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 30 Dec 2020 20:22:14 +0100 Subject: Set window urgency hint independent of notification setting fixes #960 --- main/src/ui/notifier_gnotifications.vala | 9 --------- 1 file changed, 9 deletions(-) (limited to 'main/src/ui/notifier_gnotifications.vala') 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) { -- cgit v1.2.3