How to properly discard socket-handoff GetInputFocus requests?

Clemens Eisserer <[email protected]>
Newsgroups gmane.comp.freedesktop.xcb
Message-ID <CAFvQSYT-2C5x9Vg=u3POCRfirv9L1Co6QRkOSzFntXF0wpNGGg@mail.gmail.com>
Hi,

The documentation for xcb_take_socket states xcb expectes the first
request of an external socket owner after taking the socket to be a
GetInputFocus request:

* This means that the first request you send after xcb_take_socket must cause a
* reply (e.g. just insert a GetInputFocus request).....You do not have
to wait for
* any of the GetInputFocus replies, but can instead handle them via
* xcb_discard_reply().

However, for both - xcb_discard_reply as well as xcb_discard_reply64 -
it is stated in the documentation, that they are not suited for
replies for requests not generated by xcb itself:

* Note that the sequence really does have to come from an xcb cookie;
* this function is not designed to operate on socket-handoff replies.

So, how can I properly discard the GetInputFocus replies?

Thanks and best regards, Clemens
_______________________________________________
Xcb mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xcb
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.