summaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-06-05 10:37:35 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-06-05 10:37:35 +0200
commit90d86554f871b740f6d8ce913bad5066f7aabb6b (patch)
tree14716a80ea1d19964d41a84b2d13bc2d19faf0b2 /Operations.hs
parentf092ffd4bfdc0973db04808953405a5df892ec1d (diff)
downloadmetatile-90d86554f871b740f6d8ce913bad5066f7aabb6b.tar
metatile-90d86554f871b740f6d8ce913bad5066f7aabb6b.zip
Enable logging of state changes to stdout
darcs-hash:20070605083735-9c5c1-1ab5acbd611914caa7b5cdf1f2df338c0ee616f8
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Operations.hs b/Operations.hs
index 93c0da0..734935d 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -15,7 +15,7 @@ module Operations where
import XMonad
import qualified StackSet as W
-import {-# SOURCE #-} Config (borderWidth)
+import {-# SOURCE #-} Config (borderWidth,logging)
import Data.Maybe
import Data.List (genericIndex, intersectBy, partition, delete)
@@ -168,8 +168,8 @@ windows f = do
io $ restackWindows d (flt ++ tiled')
setTopFocus
- -- withWindowSet (io . hPrint stderr) -- logging state changes!
- -- io performGC -- really helps
+ when logging $ withWindowSet (io . hPrint stdout)
+ -- io performGC -- really helps, but seems to trigger GC bugs?
-- We now go to some effort to compute the minimal set of windows to hide.
-- The minimal set being only those windows which weren't previously hidden,