[PATCH] Fixed $height-content and $width-content not being replaced in title.

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


The problem was that $width would run first and so break $width-content.
I simply changed the order in which the replacement is happening, so
that $width-content gets replaced first.
---
 themes/mxflat/theme.jl |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/themes/mxflat/theme.jl b/themes/mxflat/theme.jl
index e401975..afdb776 100644
--- a/themes/mxflat/theme.jl
+++ b/themes/mxflat/theme.jl
@@ -1835,14 +1835,14 @@ string color."
                       (window-name w))
         (update-title "(.*)(\\$fullname)(.*)"
                       (window-full-name w))
-        (update-title "(.*)(\\$width)(.*)"
-                      (car (window-frame-dimensions w)))
-        (update-title "(.*)(\\$height)(.*)"
-                      (cdr (window-frame-dimensions w)))
         (update-title "(.*)(\\$width-content)(.*)"
                       (car (window-dimensions w)))
         (update-title "(.*)(\\$height-content)(.*)"
                       (cdr (window-dimensions w)))
+        (update-title "(.*)(\\$width)(.*)"
+                      (car (window-frame-dimensions w)))
+        (update-title "(.*)(\\$height)(.*)"
+                      (cdr (window-frame-dimensions w)))
         (update-title "(.*)(\\$x-pos)(.*)"
                       (car (window-position w)))
         (update-title "(.*)(\\$y-pos)(.*)"
-- 
1.7.10.4


--MP_/SpeKbi_EfDa=1g2XTjVW05o--

-- 
Sawfish ML


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/