Signed-off-by: Espen Wiborg <[email protected]>
---
 lib/awful/titlebar.lua.in |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/awful/titlebar.lua.in b/lib/awful/titlebar.lua.in
index b2de82d..7865085 100644
--- a/lib/awful/titlebar.lua.in
+++ b/lib/awful/titlebar.lua.in
@@ -51,7 +51,9 @@ function add(c, args)
     local tb = capi.wibox(args)
 
     local title = capi.widget({ type = "textbox", align = "flex" })
-    title.text = " " .. util.escape(c.name) .. " "
+    if c.name then
+        title.text = " " .. util.escape(c.name) .. " "
+    end
 
     -- Redirect relevant events to the client the titlebar belongs to
     local bts =
-- 
1.5.6.3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to