In the mxflat title $width-content/$height-content does not work
"Robert 'Bobby' Zenz" <[email protected]>
| Newsgroups | gmane.comp.window-managers.sawfish |
|---|---|
| Message-ID | <20130321002014.76178dd5@Dagon> |
Hello everyone. The mxflat theme allows you to set the title to whatever you want, including placeholders for everything. Unfortunately the placeholders for the height and with of the content (without borders) did not work. Patch is attached. Best Regards, Bobby
0001-Fixed-height-content-and-width-content-not-being-rep.patch
(text/x-patch, 1.6 KB)
From 0d21bb2001c65964f9cbdf98f2678a274ffce778 Mon Sep 17 00:00:00 2001 From: Robert Zenz <[email protected]> Date: Thu, 21 Mar 2013 00:12:58 +0100 Subject: [PATCH] Fixed $height-content and $width-content not being replaced in title. 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