From: Samir Benmendil Date: Sat, 8 Aug 2020 10:42:33 +0000 (+0100) Subject: awesome/mpd_widget: show popup after clicking to destroy X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/898a30b566020874e1c7fe96832585e015f32430?ds=sidebyside 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. --- 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)