From 878f9e7580155047db3cc666e2a2cb0f32de6f80 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 2 Dec 2009 21:38:23 +0100 Subject: [PATCH] awful.menu: add keygrabber support to clients menu Functions show() and toggle() accept a boolean parameter controlling keyboard navigation. In case of the clients menu neither is called directly, instead the clients menu is always re-created in case any new clients appeard since the last invocation. This patch adds a keygrabber parameter to the clients() function as well. Signed-off-by: Adrian C. (anrxc) Signed-off-by: Julien Danjou --- lib/awful/menu.lua.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/awful/menu.lua.in b/lib/awful/menu.lua.in index a13bd5ee..68f8081c 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -250,8 +250,9 @@ end --- Build a popup menu with running clients and shows it. -- @param menu Menu table, see new() function for more informations +-- @param keygrabber A boolean enabling or not the keyboard navigation. -- @return The menu. -function clients(menu) +function clients(menu, keygrabber) local cls = capi.client.get() local cls_t = {} for k, c in pairs(cls) do @@ -272,7 +273,7 @@ function clients(menu) menu.items = cls_t local m = new(menu) - m:show() + m:show(keygrabber) return m end