Hi, I have this function that I am adding th rc.lua to highlight the
in-focus client, with the idea that if it is the only cleient not to
highlight it.

For the most part is works, but when I only have one client in the screen
it is still highlighted, even though it works correctly otherwise.

Does anyone have an idea what could be wrong with this code to help it do
that.

thanks in advance

--jerry

client.add_signal("focus",
function(c)
    tblclient = client.get()
    clientcount = # tblclient
    if clientcount > 1 then
        c.border_color = "#f2e817"
    else
        c.border_color = "#000000"
    end
end)
client.add_signal("unfocus",
function(c)
    c.border_color = "#000000"
end)


-- 

Gerald Klein DBA****

[email protected]

www.geraldklein.com <http://geraldklein.com/>****

[email protected]****

708-599-0352****


Linux registered user #548580

Reply via email to