From 337d0a9cd11c5016a463a07707bb3c6ce910cbbf Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Fri, 5 Jan 2018 21:55:15 +0200 Subject: [PATCH] Raise the maximum value of the progress hint The progress hint is mostly used for progress bars but as discussed in #437 there are cases where values > 100 make sense. Fixes #437 --- src/notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notification.c b/src/notification.c index 349668e..13dba18 100644 --- a/src/notification.c +++ b/src/notification.c @@ -324,7 +324,7 @@ void notification_init(notification *n) n->colors[ColFrame] = g_strdup(xctx.colors[ColFrame][n->urgency]); /* Sanitize misc hints */ - if (n->progress < 0 || n->progress > 100) + if (n->progress < 0) n->progress = -1; /* Process rules */