Only allocate XEvent once
This commit is contained in:
parent
55edb549a5
commit
7da8a9114e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue