aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/info-notification.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/info-notification.vala b/src/info-notification.vala
index bf04f61..2aabcba 100644
--- a/src/info-notification.vala
+++ b/src/info-notification.vala
@@ -44,7 +44,7 @@ public class IndicatorSound.InfoNotification: Notification
n.set_hint ("x-canonical-non-shaped-icon", "true");
n.set_hint ("x-canonical-private-synchronous", "true");
n.set_hint ("x-canonical-value-bar-tint", is_high_volume ? "true" : "false");
- n.set_hint ("value", (int32)((volume * 100.0) + 0.5));
+ n.set_hint ("value", ((int32)((volume * 100.0) + 0.5)).clamp(0, 100));
show_notification();
}