[Xcb] How to properly discard socket-handoff GetInputFocus requests?

Clemens Eisserer linuxhippy at gmail.com
Sat Feb 17 16:36:14 UTC 2018


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


More information about the Xcb mailing list