mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-11 02:01:51 -07:00
Replaced custom forever_ by library function
This commit is contained in:
@@ -155,12 +155,10 @@ xmonad initxmc = do
|
|||||||
userCode $ startupHook initxmc
|
userCode $ startupHook initxmc
|
||||||
|
|
||||||
-- main loop, for all you HOF/recursion fans out there.
|
-- 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 ()
|
return ()
|
||||||
where
|
where
|
||||||
forever_ a = a >> forever_ a
|
|
||||||
|
|
||||||
-- if the event gives us the position of the pointer, set mousePosition
|
-- if the event gives us the position of the pointer, set mousePosition
|
||||||
prehandle e = let mouse = do guard (ev_event_type e `elem` evs)
|
prehandle e = let mouse = do guard (ev_event_type e `elem` evs)
|
||||||
return (fromIntegral (ev_x_root e)
|
return (fromIntegral (ev_x_root e)
|
||||||
|
Reference in New Issue
Block a user