client: allow setting skip_taskbar

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
koniu 2009-05-28 06:37:17 +01:00 committed by Julien Danjou
parent a264acb1f0
commit e69f80caf6
2 changed files with 7 additions and 2 deletions

View File

@ -1546,6 +1546,10 @@ luaA_client_newindex(lua_State *L)
else else
titlebar_client_attach(c); titlebar_client_attach(c);
break; break;
case A_TK_SKIP_TASKBAR:
c->skiptb = luaA_checkboolean(L, 3);
hook_property(client, c, "skip_taskbar");
break;
default: default:
return 0; return 0;
} }
@ -1559,7 +1563,7 @@ luaA_client_newindex(lua_State *L)
* \luastack * \luastack
* \lfield id The window X id. * \lfield id The window X id.
* \lfield name The client title. * \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 type The window type (desktop, normal, dock, ).
* \lfield class The client class. * \lfield class The client class.
* \lfield instance The client instance. * \lfield instance The client instance.

View File

@ -66,7 +66,8 @@ function new(label, buttons)
or prop == "maximized_vertical" or prop == "maximized_vertical"
or prop == "icon" or prop == "icon"
or prop == "name" or prop == "name"
or prop == "icon_name" then or prop == "icon_name"
or prop == "skip_taskbar" then
u() u()
end end
end) end)