Fixed sit-for on gtk-screens using peek timeout.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Mon, 17 Jan 2011 19:19:12 +0000 (12:19 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Thu, 2 Jun 2011 17:39:51 +0000 (10:39 -0700)
commit4d7f72fa25b439765785b2cfae44698b743e353e
tree38bde6602dd5b8199eadd697fa7a5839f620ea8a
parente5a645d9eac9449b9a7cea172bce1d907fee431f
Fixed sit-for on gtk-screens using peek timeout.

* src/edwin/input.scm (keyboard-peek-no-hang)
(handle-simple-events-until): Added optional "timeout" argument,
implemented with the new handle-simple-events-until procedure.  Pull
the simple event handling out of handle-simple-events' loop to create
simple-event-handled?, and used it to implement
handle-simple-events-until.

* src/edwin/simple.scm (sit-for): Get screens up-to-date first, even
with input pending(?).  Replaced busy loop with optional timeout
argument to keyboard-peek-no-hang.  This processes simple events,
which call update-screens! as necessary.
src/edwin/input.scm
src/edwin/simple.scm