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_freedesktop.vala | 9 --------- 1 file changed, 9 deletions(-) (limited to 'main/src/ui/notifier_freedesktop.vala') diff --git a/main/src/ui/notifier_freedesktop.vala b/main/src/ui/notifier_freedesktop.vala index 22b104bc..00ba0d06 100644 --- a/main/src/ui/notifier_freedesktop.vala +++ b/main/src/ui/notifier_freedesktop.vala @@ -107,15 +107,6 @@ public class Dino.Ui.FreeDesktopNotifier : NotificationProvider, Object { } catch (Error e) { warning("Failed showing content item notification: %s", e.message); } - - // 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-54-g00ecf