dbg: fix client_info() function to display provided client

Display the focused client only if we don't have get a client.
This commit is contained in:
Vincent Bernat 2013-07-05 10:12:32 +02:00
parent 402b15f38e
commit 60908e329d

View file

@ -5,11 +5,11 @@ local colors = {
name = theme.fg_widget_value_important,
}
local function client_info()
local function client_info(c)
local v = ""
-- object
local c = client.focus
local c = c or client.focus
v = v .. tostring(c)
-- geometry