From 60908e329d96bd7182a66669c14ac4511fe8c2a9 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 5 Jul 2013 10:12:32 +0200 Subject: [PATCH] dbg: fix `client_info()` function to display provided client Display the focused client only if we don't have get a client. --- rc/debug.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/debug.lua b/rc/debug.lua index e17b915..03f45ac 100644 --- a/rc/debug.lua +++ b/rc/debug.lua @@ -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