menubar: Properly stop the keygrabber

After some recent keygrabber changes the menubar's application
execution was broken. This commit fixes it.

Signed-off-by: Alexander Yakushev <yakushev.alex@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Alexander Yakushev 2012-05-08 01:16:31 +03:00 committed by Uli Schlachter
parent 3986409e70
commit 91ab7e7e71
1 changed files with 3 additions and 2 deletions

View File

@ -101,8 +101,9 @@ local function perform_action(o)
return true, "", new_prompt
elseif shownitems[current_item].cmdline then
awful.util.spawn(shownitems[current_item].cmdline)
hide()
return true
-- Let awful.prompt execute dummy exec_callback and
-- done_callback to stop the keygrabber properly.
return false
end
end