On Thu, May 28, 2009 at 14:09, Julien Danjou <[email protected]> wrote: > At 1243490010 time_t, koniu wrote: >> + luaA_dofunction_from_registry(L, globalconf.hooks.clients, 0, >> 0); > > Nop, call the property hook. This one is only for client list.
Yup, patch amended. Thanks, k
From f905baefa2a36fbc867e03c867ad1b287e5abcf3 Mon Sep 17 00:00:00 2001 From: koniu <[email protected]> Date: Thu, 28 May 2009 06:37:17 +0100 Subject: [PATCH] client: allow setting skip_taskbar Signed-off-by: koniu <[email protected]> --- client.c | 6 +++++- lib/awful/widget/tasklist.lua.in | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index ddc1856..8290db3 100644 --- a/client.c +++ b/client.c @@ -1508,6 +1508,10 @@ luaA_client_newindex(lua_State *L) else titlebar_client_attach(c); break; + case A_TK_SKIP_TASKBAR: + c->skiptb = luaA_checkboolean(L, 3); + hook_property(client, c, "skip_taskbar"); + break; default: return 0; } @@ -1521,7 +1525,7 @@ luaA_client_newindex(lua_State *L) * \luastack * \lfield id The window X id. * \lfield name The client title. - * \lfield skip_taskbar True if the client does not want to be in taskbar. + * \lfield skip_taskbar If true the client won't be shown in the tasklist. * \lfield type The window type (desktop, normal, dock, …). * \lfield class The client class. * \lfield instance The client instance. diff --git a/lib/awful/widget/tasklist.lua.in b/lib/awful/widget/tasklist.lua.in index 65eb1a5..0d0897c 100644 --- a/lib/awful/widget/tasklist.lua.in +++ b/lib/awful/widget/tasklist.lua.in @@ -66,7 +66,8 @@ function new(label, buttons) or prop == "maximized_vertical" or prop == "icon" or prop == "name" - or prop == "icon_name" then + or prop == "icon_name" + or prop == "skip_taskbar" then u() end end) -- 1.6.3.1
