From 0e22af5a8737d343aeb46849257671215696c062 Mon Sep 17 00:00:00 2001 From: Kievits Rene Date: Tue, 31 May 2022 15:10:24 +0200 Subject: [PATCH] fix xorg crash when n.timeout == 0 in arcchart max_value --- awesome/src/core/notifications.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/awesome/src/core/notifications.lua b/awesome/src/core/notifications.lua index df1c2aa..ec8138a 100644 --- a/awesome/src/core/notifications.lua +++ b/awesome/src/core/notifications.lua @@ -161,6 +161,11 @@ naughty.connect_signal( widget = naughty.list.actions } + local arc_start = n.timeout + if n.timeout == 0 then + arc_start = 10 + end + local w_template = wibox.widget { { { @@ -218,8 +223,8 @@ naughty.connect_signal( start_angle = 4.71239, thickness = dpi(2), min_value = 0, - max_value = n.timeout or 10, - value = n.timeout or 10, + max_value = arc_start, + value = arc_start, widget = wibox.container.arcchart, id = "arc_chart" },