diff options
author | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2007-10-27 13:09:32 +0200 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2007-10-27 13:09:32 +0200 |
commit | 105da44b55eca8b872fb892d41bf66deb391b76c (patch) | |
tree | a56bf64c654fff6770ffb0bd8859b40d07bb0c46 /Main.hs | |
parent | e22c89eadc72c8b294536421fce7ca940f969e50 (diff) | |
download | xmobar-105da44b55eca8b872fb892d41bf66deb391b76c.tar.gz xmobar-105da44b55eca8b872fb892d41bf66deb391b76c.tar.bz2 |
Main will now open the connection with the X server
darcs-hash:20071027110932-d6583-621b580c6fffcc889489186a0f030f9f39b0500d.gz
Diffstat (limited to 'Main.hs')
-rw-r--r-- | Main.hs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -24,6 +24,7 @@ import Parsers import Config import Data.IORef +import Graphics.X11.Xlib import System.Console.GetOpt import System.Exit import System.Environment @@ -34,6 +35,7 @@ import System.Posix.Files -- | The main entry point main :: IO () main = do + d <- openDisplay "" args <- getArgs (o,file) <- getOpts args c <- case file of @@ -44,7 +46,7 @@ main = do conf <- readIORef civ cl <- parseTemplate conf (template conf) vars <- mapM startCommand cl - (d,w) <- createWin conf + w <- createWin d conf eventLoop conf vars d w -- | Reads the configuration files or quits with an error |