[Xcb] events and connection
jamey at minilop.net
Tue Apr 5 13:43:02 PDT 2005
On Tue, Apr 05, 2005 at 08:37:03PM +0200, Vincent Torri wrote:
> i'm working on the xcb port of ecore, and i'm facing a problem.
> I have a XCBButtonPressEvent event, and i need to retrieve the connection
> from which it has been sent.
> In the structure, there's no information about that.
> Does someone know how to get this connection ? (maybe from the root
> XCBWINDOW ?)
Multiple connections can be opened to the same server, which will have
the same XID for the root window, so that won't help. I think.
When you call XCBWaitForEvent or XCBPollForEvent, you know what
connection you're getting the event from. You should track it there if
you need it. You could create your own structure containing the event
and an XCBConnection* or something.
More information about the xcb