GDK, XEvents, and the caps lock key



I'm trying to debug an app written in gtk with gdk and some xlib calls,
and there are a few items I'd like to bring up.--

First, when you call XChangeKeyboardMapping it is suppoesd to generate a a
MappingNotify event per the man page.  It does happen, and gdk notices it,
but spits out a message saying "Unknown even window (0)" or something very
similar.  First, i was wondering why this event is unknown to GDK, and
second, if there was a way with a gdk functoin to attach a callback to
this type of signal so I can do nothing when it happens or just ignore it
completely.

Also there is the issue of the caps lock key.  It has a KeySym that maps
to a !=KeyCode, but it is neither in the modifier list for X with
XGetModifierMapping (taking the keycodes returned by that, translating to
KeySym, and looking for XK_Caps_Lock.  What type of key is caps_lock and
how can I modify it's function?  Through XChangeKeyboardMapping() (which I
have tried and doesn't seem to work) or through XSetModifierMapping()
(which I haven't looked very deeply into yet)  The reason I ask these Xlib
kinda questions is because I haven't been able to locate any functions
that would help me out in this area through GTK+.

Any help on any or all of these issues would be appreciated.

MDA
http://opop.nols.com/index.shtml - Linux software development
There are three kinds of people:  Those who can count, and those who can't.



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