awful.keygrabber.run: Fix example (#2169)

Fixes: https://github.com/awesomeWM/awesome/issues/2167
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2018-01-24 19:13:08 +01:00 committed by Emmanuel Lepage Vallée
parent 8d063f573e
commit cfe9231e59
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ end
-- -- client using the keyboard. -- -- client using the keyboard.
-- --
-- function resize(c) -- function resize(c)
-- local grabber = awful.keygrabber.run(function(mod, key, event) -- local grabber
-- grabber = awful.keygrabber.run(function(mod, key, event)
-- if event == "release" then return end -- if event == "release" then return end
-- --
-- if key == 'Up' then c:relative_move(0, 0, 0, 5) -- if key == 'Up' then c:relative_move(0, 0, 0, 5)