[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] xlib egg

From: Zbigniew
Subject: Re: [Chicken-users] xlib egg
Date: Sat, 2 Dec 2006 00:11:42 -0600

How about something along the lines of

(let ((event (make-xevent)))
 (xnextevent dpy event)
 (print (xevent-type event)))

On 12/1/06, Adam C. Emerson <address@hidden> wrote:

I'm experimenting with the xlib egg, and I'm having some trouble with
the xnextevent procedure.  As far as I can ascertain, I need to pass
in a C pointer.  So I tried this:

  (let* ((e (make-vector 1))
         (l (make-locative e 0)))
    (xnextevent dpy l)
    (vector-ref e 0))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]