From 90d86554f871b740f6d8ce913bad5066f7aabb6b Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Tue, 5 Jun 2007 10:37:35 +0200 Subject: Enable logging of state changes to stdout darcs-hash:20070605083735-9c5c1-1ab5acbd611914caa7b5cdf1f2df338c0ee616f8 --- Main.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Main.hs') diff --git a/Main.hs b/Main.hs index 8c9b485..1b2e42f 100644 --- a/Main.hs +++ b/Main.hs @@ -45,6 +45,7 @@ main = do xinesc <- getScreenInfo dpy nbc <- initcolor normalBorderColor fbc <- initcolor focusedBorderColor + hSetBuffering stdout NoBuffering args <- getArgs let winset | ("--resume" : s : _) <- args @@ -89,7 +90,7 @@ main = do , w <- W.integrate (W.stack wk) ] mapM_ manage ws -- find new windows - -- withWindowSet (io . hPrint stderr) -- uncomment for state logging + when logging $ withWindowSet (io . hPrint stdout) -- main loop, for all you HOF/recursion fans out there. forever $ handle =<< io (nextEvent dpy e >> getEvent e) -- cgit v1.2.3