powell@ole.UUCP (Gary Powell) (03/01/89)
I have been having trouble getting XRebindKeysym to do what I want
which is bind arbitary strings to the fn keys.
Host : Apollo
Term : sun/3/60
static char f1_reg[] = "f1 reg";
static char f1_ctrl[] = "f1 ctrl";
Keysym list[7];
XRebindKeysym (display, XK_F1, NULL, 0, f1_reg, 6); )
list[0] = XK_Control_L;
XRebindKeysym (display, XK_F1, list, 1, f1_ctrl, 7);
It overwrites the non control string with the control.
ie : press <f1>
returns "f1 ctrl"
press <f1> <Ctrl>
returns "f1 ctrl"
However if I define the plain XK_F1 after the control key was defined
then I get both as I expect. (reverse the code above.)
ie : press <f1>
returns "f1 reg"
press <f1> <Ctrl>
returns "f1 ctrl"
If I define only the control f1 then I get both f1 and ctrl f1 as
the same (results identical to case 1 above.)
I am using XLookupString to decode the event string.
Anyone else have this problem?
--
_Q _Q _Q _Q _Q_Q _Q _Q _Q
/_\) /_\) /_\) /_\)/_/\\) /_\) /_\) Gary Powell /_\)
_O|/O_O|/O__O|/O___O|/O_OO|/O__O|/O__O|/O__________________________________O|/O_
UUCP!uw-beaver!tikal!ole!powell Seattle Silicon Corp. (206) 828-4422