sorry, fix a bug introduced with the customwidget.
From a7848134a7f5fe945796f35ec497aedfe9070a98 Mon Sep 17 00:00:00 2001
From: Cedric GESTES <[email protected]>
Date: Fri, 4 Sep 2009 14:39:53 +0200
Subject: [PATCH] titlebar: fix title and appicon position in the layout

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

diff --git a/lib/awful/titlebar.lua.in b/lib/awful/titlebar.lua.in
index 0a6f289..674c843 100644
--- a/lib/awful/titlebar.lua.in
+++ b/lib/awful/titlebar.lua.in
@@ -143,12 +143,12 @@ end
 function update(c)
      if c.titlebar and data[c] then
         local widgets = c.titlebar.widgets
-        if widgets[2].title then
-            widgets[2].title.text = "<span font_desc='" .. data[c].font ..
+        if widgets[3].title then
+            widgets[3].title.text = "<span font_desc='" .. data[c].font ..
             "'> ".. util.escape(c.name) .. " </span>"
         end
-        if widgets[2].appicon then
-            widgets[2].appicon.image = c.icon
+        if widgets[3].appicon then
+            widgets[3].appicon.image = c.icon
         end
         if capi.client.focus == c then
             c.titlebar.fg = data[c].fg_focus
-- 
1.6.0.4

Reply via email to