diff options
-rw-r--r-- | lib/Phi/X11.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Phi/X11.hs b/lib/Phi/X11.hs index e5d220b..56293ef 100644 --- a/lib/Phi/X11.hs +++ b/lib/Phi/X11.hs @@ -136,7 +136,7 @@ receiveEvents :: Phi -> Widget.Display -> IO () receiveEvents phi dispvar = do connection <- Widget.withDisplay dispvar $ return . Fd . connectionNumber - forever $ allocaXEvent $ \xevent -> do + allocaXEvent $ \xevent -> forever $ do handled <- Widget.withDisplay dispvar $ \disp -> do pend <- pending disp if pend /= 0 then |