From 898a30b566020874e1c7fe96832585e015f32430 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 8 Aug 2020 11:42:33 +0100 Subject: [PATCH] awesome/mpd_widget: show popup after clicking to destroy The popup would not show if clicked to destroy it then hovering over the widget again. Would have to wait until the timer runs out. --- awesome/widgets/mpd_widget.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awesome/widgets/mpd_widget.lua b/awesome/widgets/mpd_widget.lua index 7f96b24..b6cfec8 100644 --- a/awesome/widgets/mpd_widget.lua +++ b/awesome/widgets/mpd_widget.lua @@ -74,7 +74,7 @@ function widget:popup_show() -- , icon = img , text = table.text , timeout = 0 - , destroy = function() self._timer:stop() end + , destroy = function() self._timer:stop(); self._notification = nil end }) self._timer:start() end) -- 2.48.1