I define
(defmethod glut:idle ((window glut:window)) (swank::process-requests t))
to keep Slime responsive while the event-loop runs (when running single-threaded) -- which is nice enough, but a tad inelegant not just because of the double-colon, but because it causes __every__ window to call PROCESS-REQUESTS.
I'm wondering if there should be a single global *IDLE-HOOK* (or maybe REGISTER-IDLE-HOOK) in addition to the per-window method approach -- something which causes windows to automatically subscribe to Idle events without registering themselves in *WINDOWS-WITH-IDLE-EVENTS*.
Cheers,
-- Nikodemus
On Thu, Oct 28, 2010 at 12:58 PM, Nikodemus Siivola nikodemus@random-state.net wrote:
I'm wondering if there should be a single global *IDLE-HOOK* (or maybe REGISTER-IDLE-HOOK) in addition to the per-window method approach -- something which causes windows to automatically subscribe to Idle events without registering themselves in *WINDOWS-WITH-IDLE-EVENTS*.
Sounds like a good straightforward idea. I've implemented that here: https://github.com/luismbo/cl-opengl/commit/2604ea787dd8516ebf0674c2a8efef30fb1eac21
I'll send a pull request to Bart after testing it.
cl-opengl-devel@common-lisp.net