summaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-06-03 23:20:55 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-06-03 23:20:55 +0200
commit2efd0286c28fa10ad32111339a2fad55634c481f (patch)
treedddac194395b70ff5ba1e2fd3c40c49db746185c /Main.hs
parent2b260b3524c69b62736f96993b2d746c562dd40b (diff)
downloadmetatile-2efd0286c28fa10ad32111339a2fad55634c481f.tar
metatile-2efd0286c28fa10ad32111339a2fad55634c481f.zip
-Wall police
darcs-hash:20070603212055-a5988-154f62e30303e2ab406201d08318d070a914baa3
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Main.hs b/Main.hs
index 467c630..44b9a2d 100644
--- a/Main.hs
+++ b/Main.hs
@@ -183,11 +183,10 @@ handle e@(CrossingEvent {ev_event_type = t})
-- configure a window
handle e@(ConfigureRequestEvent {ev_window = w}) = withDisplay $ \dpy -> do
- floating <- gets $ M.member w . floating . windowset
- rootw <- asks theRoot
- wa <- io $ getWindowAttributes dpy w
+ f <- gets $ M.member w . floating . windowset
+ wa <- io $ getWindowAttributes dpy w
- if floating
+ if f
then do io $ configureWindow dpy w (ev_value_mask e) $ WindowChanges
{ wc_x = ev_x e
, wc_y = ev_y e