Xlib: unexpected async reply (sequence 0x7)

Glynn Clements glynn at gclements.plus.com
Thu Nov 15 08:03:40 PST 2007

Matthias Käppler wrote:

> just one more thing:
> I don't really get how to use the suggested XCheckTypedWindowEvent()
> function. I mean, I don't have a reference to any specific window in my
> event loop, I just listen for events. In fact, I want to figure out the
> window from the focus event I receive, not vice versa. So how do I use this
> function? Call it for every available window in a while loop? ^^

Sorry, I misread the code. If you aren't interested in a specific
window, use XCheckTypedEvent() instead. If you need to allow other
parts of the code to see the event, you can use XPutBackEvent() to
return the event to the queue.

Glynn Clements <glynn at gclements.plus.com>

More information about the xorg mailing list