Russ Nelson wrote:
> Is anybody else trying to call XTestFakeKeyEvent from a gtk program?
> Any pointers on how to do it? Strictly speaking, gdk calls X, not
> gtk, and and I'm not really sure if I should break layering, or if I
> should create a gdk function to call XTestFakeKeyEvent.
I doubt that they would actually take something like that into the main
code line since it uses the XTest extension ( right? ).
In any case, if you want to call it from gtk code you do something like:
XTestFakeKeyEvent(GDK_DISPLAY(), XFakeEvent);
I don't have documentation for that function on my machine - it might
not be installed. We do a lot of X hacks in mozilla to get better
performance where we can. It's not too bad.
--Chris
-- ------------ Christopher Blizzard http://people.redhat.com/blizzard/ Plan to be spontaneous tomorrow. ------------Received on Tue Sep 5 21:28:56 2000
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:42:16 EDT