diff options
Diffstat (limited to 'logout-widget')
-rw-r--r-- | logout-widget/README.md | 2 | ||||
-rw-r--r-- | logout-widget/logout.lua | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/logout-widget/README.md b/logout-widget/README.md index 7d1673d..e4d095d 100644 --- a/logout-widget/README.md +++ b/logout-widget/README.md @@ -38,7 +38,7 @@ Then - to show by clicking on a widget in wibar - add widget to the wibar: ```lua - local logout = require("awesome-wm-widgets.experiments.logout-widget.logout") + local logout = require("awesome-wm-widgets.logout-widget.logout") s.mytasklist, -- Middle widget { -- Right widgets diff --git a/logout-widget/logout.lua b/logout-widget/logout.lua index b8835a6..9fcc9fe 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) @@ -109,6 +110,7 @@ local function launch(args) layout = wibox.container.place } + w.screen = mouse.screen w.visible = true awful.placement.centered(w) |