<div>Hello,</div><div><br></div><div>I&#39;ve come across a very strange inconsistency. Essentially, if I create a very simple window using xcb/xpyb, closing the window using the window manager provides different behavior. When using xcb, the behavior is as expected... The program quits gracefully. However, when doing the same thing using xpyb, I get an IOError.</div>

<div><br></div><div>I&#39;ve attached two sample programs, that do the same thing: create a window and output button presses. Close the window in the C version, and the program exits gracefully. Close the window in the Python program, and it errors out.</div>

<div><br></div><div>I&#39;d appreciate any help on the matter! (I&#39;m willing to accept workarounds...)</div><div><br></div><div>Thanks!</div><br clear="all">- Andrew<br>