Getting keyboard input into an unfocused window
- From: Mubashir <mcheema yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: Getting keyboard input into an unfocused window
- Date: Thu, 7 Jun 2001 00:21:14 -0700 (PDT)
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.
Thanks.
Mubashir Cheema
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]