summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Xmobar/X11/Draw.hs6
-rw-r--r--xmobar.cabal4
2 files changed, 6 insertions, 4 deletions
diff --git a/src/Xmobar/X11/Draw.hs b/src/Xmobar/X11/Draw.hs
index 643ec13..2d61b67 100644
--- a/src/Xmobar/X11/Draw.hs
+++ b/src/Xmobar/X11/Draw.hs
@@ -54,10 +54,10 @@ drawInWin conf bound@(Rectangle _ _ wid ht) segments = do
liftIO $ setGraphicsExposures d gc False
#if defined(XFT) || defined(CAIRO)
- let conf = config r
- alph = alpha conf
+ let xconf = config r
+ alph = alpha xconf
when (alph < 255)
- (liftIO $ drawBackground d p (bgColor conf) alph (Rectangle 0 0 wid ht))
+ (liftIO $ drawBackground d p (bgColor xconf) alph (Rectangle 0 0 wid ht))
#endif
#ifdef CAIRO
diff --git a/xmobar.cabal b/xmobar.cabal
index 31a36b4..c19b71d 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -146,7 +146,6 @@ library
Xmobar.X11.Types,
Xmobar.X11.Window,
Xmobar.X11.XRender,
- Xmobar.X11.XlibDraw,
Xmobar.Plugins.Command,
Xmobar.Plugins.BufferedPipeReader,
Xmobar.Plugins.CommandReader,
@@ -245,6 +244,9 @@ library
x-c2hs-header: xmobar-gtk2hs.h
cpp-options: -DCAIRO
+ if !flag(with_cairo) || flag(with_xft)
+ other-modules: Xmobar.X11.XlibDraw
+
if flag(with_inotify) || flag(all_extensions)
build-depends: hinotify >= 0.3 && < 0.5
other-modules: Xmobar.Plugins.Mail, Xmobar.Plugins.MBox