Getting keyboard input into an unfocused window

I have been able to get keyboard input for my application without a
problem (when it is in focus).  Using the following:

gtk_signal_connect( (GTK_OBJECT(window), "key_press_event",
                      GTK_SIGNAL_FUNC(eventPressKey), NULL);

However I need to get keyboard input even when my application window does
not have the focus.  I have played around with XGrabKeyboard, which does
a good job of grabbing the keyboard, however it does not send the events
to my application window when my app goes out of focus.  I am very new
at GTK programming and would appreciate any pointers.


Mubashir Cheema

Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]