From 5a5059b058ec0a64ea8c691c5364c3d3388bcd8c Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 9 Feb 2024 18:09:59 +0000 Subject: [PATCH] notification - timeout - handling was jut broken - fix this totally didnt' get timeout was in ms - it mis-handled setting the value thinking it was double or float - it wasn't.. this fixes it. Fixes #63 @fix --- src/modules/notification/e_mod_popup.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c index 967c6b167..17e6f6b09 100644 --- a/src/modules/notification/e_mod_popup.c +++ b/src/modules/notification/e_mod_popup.c @@ -160,12 +160,13 @@ notification_popup_notify(E_Notification_Notify *n, E_FREE_FUNC(popup->timer, ecore_timer_del); if (n->timeout < 0 || notification_cfg->force_timeout) - n->timeout = notification_cfg->timeout; - else n->timeout = n->timeout / 1000.0; + n->timeout = notification_cfg->timeout * 1000.0; if (n->timeout > 0) - popup->timer = ecore_timer_loop_add(n->timeout, (Ecore_Task_Cb)_notification_timer_cb, popup); + popup->timer = ecore_timer_loop_add((double)n->timeout / 1000.0, + (Ecore_Task_Cb)_notification_timer_cb, + popup); } void