summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2020-11-01 20:05:08 -0500
committerGitHub <noreply@github.com>2020-11-01 20:05:08 -0500
commit22c572a737ce62961ba1ec30a6e4aa13f35fe80f (patch)
treedc9e115cb854aba57b7d5f86c03b8e3a2a4a6e0f
parentef9292d082d74ac09cfc3e874ef8c933be9e0651 (diff)
parent5e8330ac44a34820990e37a59b702ead527219a4 (diff)
Merge pull request #190 from aspieln3r/master
Updated logout.lua to stop the keygrabber when mouse is clicked on an option
-rw-r--r--logout-widget/logout.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/logout-widget/logout.lua b/logout-widget/logout.lua
index b8835a6..f4cae9e 100644
--- a/logout-widget/logout.lua
+++ b/logout-widget/logout.lua
@@ -51,6 +51,7 @@ local function create_button(icon_name, action_name, color, onclick, icon_size,
onclick = function()
onclick()
w.visible = false
+ capi.keygrabber.stop()
end
}
button:connect_signal("mouse::enter", function(c) action:set_text(action_name) end)