From 41c6fbb31c3af914d1e869c24b62ecea710475ec Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 24 Nov 2008 11:56:42 +0100 Subject: [PATCH] awful.prompt: return true since we unregistered (FS#383) Signed-off-by: Julien Danjou --- lib/awful/prompt.lua.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/awful/prompt.lua.in b/lib/awful/prompt.lua.in index 880f9e10..3b456d7e 100644 --- a/lib/awful/prompt.lua.in +++ b/lib/awful/prompt.lua.in @@ -167,7 +167,9 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his capi.keygrabber.stop() exe_callback(command) if done_callback then done_callback() end - return false + -- We already unregistered ourselves so we don't want to return + -- true, otherwise we may unregister someone else. + return true end -- Control cases