aboutsummaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-05-22 06:31:16 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-05-22 06:31:16 +0200
commit17d69d99dcc9f8a807b63d8a25ae8f2f949ba9cb (patch)
tree8c044559ece9e48382ef9ee1c830cf2a6ff7e860 /Main.hs
parent395b934efb901fa5bdca4046e047b9592e9771ce (diff)
downloadxmonad-17d69d99dcc9f8a807b63d8a25ae8f2f949ba9cb.tar.gz
xmonad-17d69d99dcc9f8a807b63d8a25ae8f2f949ba9cb.tar.xz
xmonad-17d69d99dcc9f8a807b63d8a25ae8f2f949ba9cb.zip
refactor using whenX
darcs-hash:20070522043116-9c5c1-034fa6854b4ad99316fcc0f85904bec62ef1549b.gz
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Main.hs b/Main.hs
index 359278b..c2124e9 100644
--- a/Main.hs
+++ b/Main.hs
@@ -172,8 +172,6 @@ handle e@(ConfigureRequestEvent {}) = withDisplay $ \dpy -> do
io $ sync dpy False
-- the root may have configured
-handle e@(ConfigureEvent {ev_window = w}) = do
- r <- asks theRoot
- when (r == w) rescreen
+handle (ConfigureEvent {ev_window = w}) = whenX (isRoot w) rescreen
handle _ = return () -- trace (eventName e) -- ignoring