Skip to content

Commit 1cd8155

Browse files
committed
Pump events before polling.
1 parent 8cd920d commit 1cd8155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UI/Window.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ poll :: Has (Lift IO) sig m => m (Maybe Event)
5252
poll = sendIO pollEvent
5353

5454
input :: Has (Lift IO) sig m => (Event -> m ()) -> m ()
55-
input h = go where
55+
input h = sendIO pumpEvents >> go where
5656
go = poll >>= maybe (pure ()) (const go <=< h)
5757

5858
size :: (Num a, Has (Lift IO) sig m, Has (Reader Window) sig m) => m (V2 (Coords a))

0 commit comments

Comments
 (0)