client: simplify condition in visible get
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
59ef5a0572
commit
8da2f939cd
2
client.c
2
client.c
|
@ -909,7 +909,7 @@ luaA_client_visible_get(lua_State *L)
|
||||||
lua_newtable(L);
|
lua_newtable(L);
|
||||||
|
|
||||||
for(c = globalconf.clients; c; c = c->next)
|
for(c = globalconf.clients; c; c = c->next)
|
||||||
if(!c->skip && !c->ishidden && client_isvisible(c, screen))
|
if(!c->skip && client_isvisible(c, screen))
|
||||||
{
|
{
|
||||||
luaA_client_userdata_new(globalconf.L, c);
|
luaA_client_userdata_new(globalconf.L, c);
|
||||||
lua_rawseti(L, -2, i++);
|
lua_rawseti(L, -2, i++);
|
||||||
|
|
Loading…
Reference in New Issue