summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar.hs
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-09-09 04:34:17 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-09-09 04:34:17 +0200
commit67e0c9f540cde8c837d125cb9ba59f433460dd4d (patch)
treec602fe43acb4a9ed9a455b137a840833228fe628 /src/Xmobar.hs
parent157194dd20f252be1331e1eee579b8177b99d895 (diff)
downloadxmobar-67e0c9f540cde8c837d125cb9ba59f433460dd4d.tar.gz
xmobar-67e0c9f540cde8c837d125cb9ba59f433460dd4d.tar.bz2
Missing Window module in cabal file
Diffstat (limited to 'src/Xmobar.hs')
-rw-r--r--src/Xmobar.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Xmobar.hs b/src/Xmobar.hs
index b58a961..de0de0a 100644
--- a/src/Xmobar.hs
+++ b/src/Xmobar.hs
@@ -262,11 +262,7 @@ printStrings dr gc fontst offs a sl@((s,c,l):xs) = do
let (conf,d) = (config &&& display) r
Rectangle _ _ wid ht = rect r
totSLen = foldr (\(_,_,len) -> (+) len) 0 sl
-#ifdef XFT
- valign = (fi ht + fi (as + ds)) `div` 2
-#else
- valign = (fi ht `div` 2) + (fi (as + ds) `div` 3)
-#endif
+ valign = ((fi ht + fi (as + ds)) `div` 2) - 1
remWidth = fi wid - fi totSLen
offset = case a of
C -> (remWidth + offs) `div` 2