From 5beb1cfa864f84b1036ab27b5d7fc42ae479a5de Mon Sep 17 00:00:00 2001 From: Hamish Fleming Date: Wed, 22 Jun 2022 18:54:41 +1000 Subject: feat(apt-widget): Close Popup On Mouse Out --- apt-widget/apt-widget.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apt-widget/apt-widget.lua') diff --git a/apt-widget/apt-widget.lua b/apt-widget/apt-widget.lua index e4e84eb..0bd6e3d 100644 --- a/apt-widget/apt-widget.lua +++ b/apt-widget/apt-widget.lua @@ -353,6 +353,13 @@ local function worker(user_args) end end))) + + wibox_popup:connect_signal("mouse::leave", function() + if wibox_popup.visible then + wibox_popup.visible = false + end + end) + return apt_widget_button end -- cgit v1.2.3