XFilterEvent and XCB

2005-09-04 Thread Travis Spencer
Hey All,

While working on the XCB port of GDK, I've run into a snag.  In
gdkevents-x11.c, _gdk_events_queue calls XFilterEvent.   Since this
function is static, I've changed the API to take an XCBGenericEvent
rather than an XEvent, so I don't have anything to pass to
XFilterEvent.  This is a problem because XCB doesn't support
internationalization like Xlib does, and there is no XCB counterpart
to XFilterEvent.   Does anyone have any advice that will help me work
around this and continue porting short of changing the function's
signature back to the original that accepts an XEvent[1]?

--

Regards,

Travis Spencer

[1] An application that uses the XCL can't use both XCB's and Xlib's
event queue simultaneously, so I have to port all of GDK event
handling at once.  This necessitated the function signature change.
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: XFilterEvent and XCB

2005-09-04 Thread Matthias Clasen
On Sun, 2005-09-04 at 22:27 -0700, Travis Spencer wrote:
 Hey All,
 
 While working on the XCB port of GDK, I've run into a snag.  In
 gdkevents-x11.c, _gdk_events_queue calls XFilterEvent.   Since this
 function is static, I've changed the API to take an XCBGenericEvent
 rather than an XEvent, so I don't have anything to pass to
 XFilterEvent.  This is a problem because XCB doesn't support
 internationalization like Xlib does, and there is no XCB counterpart
 to XFilterEvent.   Does anyone have any advice that will help me work
 around this and continue porting short of changing the function's
 signature back to the original that accepts an XEvent[1]?

Reading the description of XFilterEvent, it seems clear that you should
just omit the call if xcb does not support XIM anyway...

Matthias

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list