From e69f80caf6678c77a22f78131591e069e79b4cbb Mon Sep 17 00:00:00 2001 From: koniu Date: Thu, 28 May 2009 06:37:17 +0100 Subject: [PATCH] client: allow setting skip_taskbar Signed-off-by: koniu Signed-off-by: Julien Danjou --- 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 0ce7f91d..47f6f283 100644 --- a/client.c +++ b/client.c @@ -1546,6 +1546,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; } @@ -1559,7 +1563,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 3740d99c..c969067d 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)