@@ -162,10 +162,13 @@ intMkVty input out = do
162162 writeIORef lastUpdateRef $ Just updateData
163163 writeIORef lastPicRef $ Just inPic'
164164
165− let innerRefresh
166− = writeIORef lastUpdateRef Nothing
167− >> readIORef lastPicRef
168− >>= maybe ( return () ) ( \pic -> innerUpdate pic )
165+ let innerRefresh = do
166+ writeIORef lastUpdateRef Nothing
167+ bounds <- displayBounds out
168+ dc <- displayContext out bounds
169+ writeIORef (assumedStateRef $ contextDevice dc) initialAssumedState
170+ mPic <- readIORef lastPicRef
171+ maybe (return ()) innerUpdate mPic
169172
170173 let gkey = do k <- atomically $ readTChan $ _eventChannel input
171174 case k of