<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear,<div><br></div><div>In the following code I do not understand why *CONTEXT* is the same before (FUNCALL ...)</div><div>and within the called function unlike *WIDTH*, *HEIGHT* and *X*</div><div><br></div><div>Unlike *CONTEXT*, *X* is 123 before calling the lambda (FUNCALL ..) and 456 within the defined lambda. I would like *CONTEXT* to be lexically defined as *X*, *WIDTH*</div><div><br></div><div>Thank you for your help</div><div>Kind regards</div><div>Taoufik</div><div><br></div><div><div>(LET* ((*DISPLAY* (XOPENDISPLAY ":0.0"))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*SCREEN* (XDEFAULTSCREEN *DISPLAY*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*ROOT* (XDEFAULTROOTWINDOW *DISPLAY*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*VISUAL* (XDEFAULTVISUAL *DISPLAY* *SCREEN*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*DEPTH* (XDEFAULTDEPTH *DISPLAY* *SCREEN*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*WHITEPIXEL* (XWHITEPIXEL *DISPLAY* *SCREEN*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*ATTRIBUTES*</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;(LIST :X</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;100</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:Y</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;100</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:WIDTH</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;400</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:HEIGHT</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;400</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:BACKGROUND-PIXEL</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*WHITEPIXEL*</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:EVENT-MASK</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(LOGIOR BUTTONPRESSMASK)))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*WINDOW* (MY-CREATE-WINDOW *DISPLAY* *ROOT* *VISUAL* *ATTRIBUTES*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; <font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>(*WIDTH* (GETATTR :WIDTH *ATTRIBUTES*))</b></span></font></div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*HEIGHT* (GETATTR :HEIGHT *ATTRIBUTES*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; <font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>(*CONTEXT*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;(MY-CREATE-CONTEXT</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*DISPLAY*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*VISUAL*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*WINDOW*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*ROOT*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*WIDTH*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*HEIGHT*)</b></span></font>)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*PARENT* *WINDOW*)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*ALL-CONTEXTS* NIL)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*EVENT-HANDLERS* NIL)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; <font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>(*x* 123)</b></span></font>)</div><div>&nbsp;&nbsp;(SET-WINDOW-SIZE-HINTS *DISPLAY* *WINDOW* *WIDTH* *WIDTH* *HEIGHT* *HEIGHT*)</div><div>&nbsp;&nbsp;(XSTORENAME *DISPLAY* *WINDOW* "Test")</div><div>&nbsp;&nbsp;(XMAPWINDOW *DISPLAY* *WINDOW*)</div><div>&nbsp;&nbsp;(LABELS ((ADD-EVENT-HANDLER (EVENTTYPE HANDLER)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (PUSH (CONS (CONS EVENTTYPE *WINDOW*) HANDLER) *EVENT-HANDLERS*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (REFRESH NIL</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (DOLIST (C (REVERSE *ALL-CONTEXTS*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (CAIRO_PAINT (XLIB-CONTEXT C)))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (CAIRO_PAINT (XLIB-CONTEXT *CONTEXT*)))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (EVENT-LOOP NIL</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (LET ((WM-PROTOCOLS (XINTERNATOM *DISPLAY* "WM_PROTOCOLS" 1)))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (WITH-FOREIGN-OBJECT</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (XEV :LONG 24)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (DO ((GOT-CLOSE-SIGNAL NIL))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (GOT-CLOSE-SIGNAL)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (XNEXTEVENT *DISPLAY* XEV)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (WITH-FOREIGN-SLOTS</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ((TYPE WINDOW SERIAL) XEV XANYEVENT)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (FORMAT T</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "event ~A serial ~A window ~A *window* ~A~%"</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SERIAL</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WINDOW</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *WINDOW*)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (COND ((= TYPE CLIENTMESSAGE)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(WITH-FOREIGN-SLOTS</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;((MESSAGE-TYPE DATA0) XEV XCLIENTMESSAGEEVENT)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(IF (AND (= WINDOW *WINDOW*)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (= MESSAGE-TYPE WM-PROTOCOLS)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (= DATA0 (WM-DELETE-WINDOW *CONTEXT*)))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(PROGN (FORMAT T "close application~%")</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (SETF GOT-CLOSE-SIGNAL T)))))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (T</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(LET ((E</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ASSOC (CONS TYPE WINDOW)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*EVENT-HANDLERS*</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:TEST</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'EQUAL)))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(FORMAT T</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"handle event type=~A *context*=~A *width* ~A *height* ~A window ~A *x* ~A~%"</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TYPE</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*context* *width* *height* window *x*)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(FORCE-OUTPUT T)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(IF (NOT (NULL E)) <font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>(FUNCALL (CDR E) XEV)</b></span></font>)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(REFRESH))))))))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (DOLIST (C (REVERSE *ALL-CONTEXTS*)) (DESTROY-CONTEXT C))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (XCLOSEDISPLAY *DISPLAY*)))</div><div>&nbsp;&nbsp; &nbsp;(PROGN (LET* ((*ATTRIBUTES*</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;(LIST :X</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:Y</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:WIDTH</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;100</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:HEIGHT</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;100</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:EVENT-MASK</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(LOGIOR BUTTONPRESSMASK BUTTONRELEASEMASK)))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*WINDOW* (MY-CREATE-WINDOW *DISPLAY* *PARENT* *VISUAL* *ATTRIBUTES*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; <font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>(*WIDTH* (GETATTR :WIDTH *ATTRIBUTES*))</b></span></font></div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*HEIGHT* (GETATTR :HEIGHT *ATTRIBUTES*))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; <font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>(*CONTEXT*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;(MY-CREATE-CONTEXT</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*DISPLAY*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*VISUAL*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*WINDOW*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*PARENT*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*WIDTH*</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*HEIGHT*))</b></span></font></div><div>&nbsp;&nbsp; &nbsp; &nbsp; (*PARENT* *WINDOW*)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; <font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>(*x* 456</b></span></font>))</div><div>&nbsp;&nbsp;(PUSH *CONTEXT* *ALL-CONTEXTS*)</div><div>&nbsp;&nbsp;(XMAPWINDOW *DISPLAY* *WINDOW*)</div><div>&nbsp;&nbsp;(LABELS ((ADD-EVENT-HANDLER (EVENTTYPE HANDLER)</div><div>&nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; (format t "&gt;&gt;&gt; *context* ~A *width* ~A *height* ~A~%" *context* *width* *height*)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (PUSH (CONS (CONS EVENTTYPE *WINDOW*) HANDLER) *EVENT-HANDLERS*)))</div><div>&nbsp;&nbsp; &nbsp;(PROGN (LET ((COUNT 0) (POSX 0) (POSY 0))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ADD-EVENT-HANDLER EXPOSE</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#'(LAMBDA (EVENT)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(WITH-FOREIGN-SLOTS</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;((TYPE WINDOW SERIAL) EVENT XEXPOSEEVENT)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(FORMAT T</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Expose... *x* ~A context ~A width=~A height=~A~%" *x*</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*CONTEXT*</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*WIDTH*</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*HEIGHT*)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(SET-SOURCE-RGB 0.5 0.5 0.5)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(RECTANGLE 0 0 *WIDTH* *HEIGHT*)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(SET-SOURCE-RGB 0 0 0)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(FILL-PATH)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(MOVE-TO 20 200)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(SET-SOURCE-RGB 0.5 0.5 0.5)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(INCF COUNT)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(SHOW-TEXT (FORMAT NIL "count ~A" COUNT)))))</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)))))</div><div>&nbsp;&nbsp; &nbsp;(EVENT-LOOP)))</div><div><br></div><div>&gt;&gt;&gt;&gt; output</div><div><div>event 12 serial 131 window 6291458 *window* 6291457</div><div>handle event type=12 *context*=#&lt;MY-XLIB-CONTEXT pointer: #&lt;A Foreign Pointer #x80D000&gt;, width: 400, height: 400, pixel-based-p: T&gt; *width* 400 *height* 400 window 6291458 *x* 123</div><div>Expose... *x* 456 context #&lt;MY-XLIB-CONTEXT pointer: #&lt;A Foreign Pointer #x80D000&gt;, width: 400, height: 400, pixel-based-p: T&gt; width=100 height=100</div><div>event 33 serial 191 window 6291457 *window* 6291457</div><div><br></div><div><br></div><div><br></div></div></div></body></html>