From 6cfcf4df87f04ffbce22b658310f4b7332fa68d8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 4 Jul 2016 20:00:45 +0200 Subject: [PATCH 1/1] on update reset fade as well On update the expire was reset, but fade was ignored. A notification that was updated while fading was shown for less than asecond. Not only reset expire, but reset fade as well and change opacity to 1. Signed-off-by: Christian Hesse --- xfce4-notifyd/xfce-notify-window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xfce4-notifyd/xfce-notify-window.c b/xfce4-notifyd/xfce-notify-window.c index a1470f9..3986759 100644 --- a/xfce4-notifyd/xfce-notify-window.c +++ b/xfce4-notifyd/xfce-notify-window.c @@ -880,6 +880,12 @@ xfce_notify_window_set_expire_timeout(XfceNotifyWindow *window, g_source_remove(window->expire_id); window->expire_id = 0; } + if(window->fade_id) { + g_source_remove(window->fade_id); + window->fade_id = 0; + } + gtk_window_set_opacity(GTK_WINDOW(window), 1.0); + xfce_notify_window_start_expiration (window); } } -- 2.9.0