Hi all,<br><br>I'm trying to use Racket's GUI while using Jon's Xlib bindings inside my racket window manager, but there seems to be a resource conflict.<br><br>Let the following standard module code:<br>#lang racket/gui<br>
(define f (new frame% [label "Test Frame"]))<br>(define bt (new button% [parent f][label "Hide me"]<br> [callback (ë _ (send f show #f))]))<br>(send f show #t)<br><br>If I run this code from a keybinding or from the client console directly inside RWind, the frame and the button show up, and I can hide the frame with another keybinding or from the console.<br>
However I cannot click the button with the mouse or with the keyboard.<br>If I run this code inside a thread, same problem.<br>The frame looks completely frozen, like a still image.<br><br>But if I run the same code from a terminal, in a separate racket instance, everything works fine.<br>
<br>I guess Racket's GUI is doing some stuff that may be incompatible as is with my program, but I'm not sure what. The fact that the frame can be shown or hidden makes me doubt that's it's an issue with event processing.<br>
<br>Does this ring a bell to someone, or does anyone have an idea that could help me solve this?<br><br>Thanks,<br>Laurent<br><br><br>
<br><br>