Greg, Thank you for the prompt reply. I'll have a look at the code as you suggested but, off the top of your head, do you know whether the fact that our system has no mouse makes a difference?
Cheers, Gil -----Original Message----- From: Greg Haerr [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 6:58 PM To: Gil Glass; nanogui@linuxhacker.org Subject: Re: [nanogui] Difficulty Using GrInjectKeyboardEvent() > GrInjectKeyboardEvent(GR_ROOT_WINDOW_ID, MWKEY_SYSREQ, 0, 0, GR_TRUE); Take a close look at the code in nanox/srvevent.c::GsDeliverKeyboardEvent, you'll see that there are issues with whether the mouse is in the window, and focus issues that may cause the event to be discarded. > Finally, is there another way to post events to the queue is GrInjectKeyboardEvent() does not work the way I think it should? There's no way currently to post arbitrary events to the queue. Mouse events can be generated with GrInjectPointerEvent. If you want arbitrary events, you'll probably have to call something like nanox/srvevent.c::GsDeliverGeneralEvent(), which isn't meant to be called by applications but is accessible when LINK_APP_INTO_SERVER. Regards, Greg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]