diff --git a/quickshell/services/NotificationService.qml b/quickshell/services/NotificationService.qml index 933c78a..81a54ca 100644 --- a/quickshell/services/NotificationService.qml +++ b/quickshell/services/NotificationService.qml @@ -85,11 +85,12 @@ Singleton { function critical(n) { return !!n && n.urgency === NotificationUrgency.Critical; } - // Popup lifetime in ms; 0 keeps it until dismissed. + // Popup lifetime in ms; 0 keeps it until dismissed. Quickshell passes the + // sender's expire_timeout through in milliseconds (notify-send -t 3000 is 3000). function timeoutFor(n) { if (critical(n)) return 0; - return n.expireTimeout > 0 ? Math.round(Math.max(1, n.expireTimeout) * 1000) : options.timeout; + return n.expireTimeout > 0 ? Math.round(Math.max(1000, n.expireTimeout)) : options.timeout; } function since(n) { const at = n ? times[n.id] : undefined;