]> git.rmz.io Git - dotfiles.git/commitdiff
awesome/mpd_widget: show popup after clicking to destroy
authorSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 10:42:33 +0000 (11:42 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 8 Aug 2020 10:49:32 +0000 (11:49 +0100)
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

index 7f96b2408c22dfb6d9321f05a13ac16530fe4533..b6cfec8686d57ee94a47fbefbe4de727866e76d7 100644 (file)
@@ -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)