> I don't have a clue on whether it's possible to have a GII app inject X
> events into an X server.
This is possible. The xsendbut.c file in libgii/demos is an example of that
capability. It only sends button events, though, as it is supposed to be a
helper to mhub.c which uses quite the same trick as GPM to give the
mouse events to X.
xsendbut exists, as X doesn't know a mouse protocol with more than 3
buttons, so more buttons are emulated using XSendEvent.
Funnily enough quite some apps (Netscape and emacs tested) seem to ignore
synthetic mouse events ... (xv accepts them e.g.) hmmm
CU, Andy
--
= Andreas Beck | Email : <[EMAIL PROTECTED]> =