From 39a0fba7a85c882611ad942f66883a4ab57c721d 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 82657a22..ade0a12f 100644 --- a/lib/awful/menu.lua.in +++ b/lib/awful/menu.lua.in @@ -269,8 +269,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 @@ -291,7 +292,7 @@ function clients(menu) menu.items = cls_t local m = new(menu) - m:show() + m:show(keygrabber) return m end