diff options
author | Hamish Fleming <fleming_hamish@yahoo.com> | 2022-06-22 18:54:41 +1000 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-10-19 08:22:37 -0500 |
commit | 5beb1cfa864f84b1036ab27b5d7fc42ae479a5de (patch) | |
tree | 64527491993f76fa51c5e98898c067040b0f43b1 /apt-widget | |
parent | 82651dd12bc78f2137883c8bade5ceac27cb329e (diff) |
feat(apt-widget): Close Popup On Mouse Out
Diffstat (limited to 'apt-widget')
-rw-r--r-- | apt-widget/apt-widget.lua | 7 |
1 files changed, 7 insertions, 0 deletions
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 |