From 67e0c9f540cde8c837d125cb9ba59f433460dd4d Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 9 Sep 2012 04:34:17 +0200 Subject: Missing Window module in cabal file --- src/Xmobar.hs | 6 +----- xmobar.cabal | 3 ++- 2 files changed, 3 insertions(+), 6 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 diff --git a/xmobar.cabal b/xmobar.cabal index 05e6a52..a4d8381 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -77,7 +77,8 @@ executable xmobar hs-source-dirs: src main-is: Main.hs other-modules: - Xmobar, Config, Parsers, Commands, Localize, XUtil, StatFS, Runnable, + Xmobar, Config, Parsers, Commands, Localize, + XUtil, StatFS, Runnable, Window, Plugins, Plugins.CommandReader, Plugins.Date, Plugins.EWMH, Plugins.PipeReader, Plugins.StdinReader, Plugins.XMonadLog, Plugins.Utils, Plugins.Kbd, Plugins.Monitors, -- cgit v1.2.3