[Xcb] IOError in xpyb, but not in xcb

Peter Harris git at peter.is-a-geek.org
Sat Nov 20 10:47:14 PST 2010

On Fri, Nov 19, 2010 at 8:16 PM, Andrew Gallant wrote:
> Hello,
> I'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.

I don't know anything about xpyb, but I suspect this is due to xpyb
throwing an exception (something that C can't do, so xcb merely flags
the error) when your application's socket is closed.

> I'd appreciate any help on the matter! (I'm willing to accept
> workarounds...)

As a workaround, you could implement the WM_DELETE_WINDOW protocol:

Peter Harris

More information about the Xcb mailing list