summaryrefslogtreecommitdiffstats
path: root/XMonad
diff options
context:
space:
mode:
Diffstat (limited to 'XMonad')
-rw-r--r--XMonad/Main.hsc4
1 files changed, 1 insertions, 3 deletions
diff --git a/XMonad/Main.hsc b/XMonad/Main.hsc
index f68ebf5..ed3fc59 100644
--- a/XMonad/Main.hsc
+++ b/XMonad/Main.hsc
@@ -155,12 +155,10 @@ xmonad initxmc = do
userCode $ startupHook initxmc
-- main loop, for all you HOF/recursion fans out there.
- forever_ $ prehandle =<< io (nextEvent dpy e >> getEvent e)
+ forever $ prehandle =<< io (nextEvent dpy e >> getEvent e)
return ()
where
- forever_ a = a >> forever_ a
-
-- if the event gives us the position of the pointer, set mousePosition
prehandle e = let mouse = do guard (ev_event_type e `elem` evs)
return (fromIntegral (ev_x_root e)