Skip to content

Commit

Permalink
Raise the maximum value of the progress hint
Browse files Browse the repository at this point in the history
The progress hint is mostly used for progress bars but as discussed in
 dunst-project#437 there are cases where values > 100 make sense.

Fixes dunst-project#437
tsipinakis committed Jan 5, 2018

Verified

This commit was signed with the committer’s verified signature.
1 parent 3cec7d4 commit 88e51f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notification.c
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 88e51f4

Please sign in to comment.