]> git.rmz.io Git - dotfiles.git/commitdiff
awesome/mpd_widget: reset timeout when popup_hide is called again
authorSamir Benmendil <me@rmz.io>
Mon, 10 Aug 2020 20:32:42 +0000 (21:32 +0100)
committerSamir Benmendil <me@rmz.io>
Mon, 10 Aug 2020 21:05:30 +0000 (22:05 +0100)
When the timer runs again it should run with the new timeout.

awesome/widgets/mpd_widget.lua

index a0defc1de681c6bcd092f72f1e6bf53e27e682a9..d96289355931432d011389bc9571daafc30520c4 100644 (file)
@@ -103,6 +103,7 @@ function widget:popup_hide(delay)
     end
 
     if self._hide_timer and self._hide_timer.started then
     end
 
     if self._hide_timer and self._hide_timer.started then
+        self._hide_timer.timeout = delay
         self._hide_timer:again()
     else
         self._hide_timer = timer(
         self._hide_timer:again()
     else
         self._hide_timer = timer(