All right, found it. Patch is attached.

Thanks to dodo for the directions.

--
Alexander Yakushev

"If or if-not. There is no try..catch-based flow control in Clojure."
-- Master Joda

>From 8bee04f3cb2f498c32bbd991aebcf0ca75f40231 Mon Sep 17 00:00:00 2001
From: Alexander Yakushev <yakushev.a...@gmail.com>
Date: Mon, 7 May 2012 23:20:18 +0300
Subject: [PATCH] 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.a...@gmail.com>
---
 lib/menubar/init.lua.in |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/menubar/init.lua.in b/lib/menubar/init.lua.in
index 58497a9..0f7e50b 100644
--- a/lib/menubar/init.lua.in
+++ b/lib/menubar/init.lua.in
@@ -102,7 +102,9 @@ local function perform_action(o)
     elseif shownitems[current_item].cmdline then
         awful.util.spawn(shownitems[current_item].cmdline)
         hide()
-        return true
+        -- Let awful.prompt execute dummy exec_callback and stop the
+        -- keygrabber properly
+        return false
     end
 end
 
-- 
1.7.10.1

Reply via email to