diff options
Diffstat (limited to 'src/Xmobar')
-rw-r--r-- | src/Xmobar/App/EventLoop.hs | 3 | ||||
-rw-r--r-- | src/Xmobar/X11/Draw.hs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/Xmobar/App/EventLoop.hs b/src/Xmobar/App/EventLoop.hs index 678db2d..3fab3e5 100644 --- a/src/Xmobar/App/EventLoop.hs +++ b/src/Xmobar/App/EventLoop.hs @@ -47,7 +47,10 @@ import Xmobar.X11.Text import Xmobar.X11.Draw import Xmobar.X11.Bitmap as Bitmap import Xmobar.X11.Types + +#ifndef THREADED_RUNTIME import Xmobar.X11.Events(nextEvent') +#endif #ifdef XFT import Graphics.X11.Xft diff --git a/src/Xmobar/X11/Draw.hs b/src/Xmobar/X11/Draw.hs index e9be1fe..23003b3 100644 --- a/src/Xmobar/X11/Draw.hs +++ b/src/Xmobar/X11/Draw.hs @@ -62,6 +62,8 @@ drawInWin wr@(Rectangle _ _ wid ht) ~[left,center,right] = do (defaultDepthOfScreen (defaultScreenOfDisplay d)) #if XFT when (alpha c /= 255) (liftIO $ drawBackground d p (bgColor c) (alpha c) wr) +#else + _ <- return wr #endif withColors d [bgColor c, borderColor c] $ \[bgcolor, bdcolor] -> do gc <- liftIO $ createGC d w |