Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!tikal!ole!powell From: powell@ole.UUCP (Gary Powell) Newsgroups: comp.windows.x Subject: XRebindKeysym X11R2 Message-ID: <544@ole.UUCP> Date: 28 Feb 89 21:33:05 GMT Reply-To: powell@ole.UUCP (Gary Powell) Distribution: usa Organization: Seattle Silicon Corporation, Bellevue, WA. Lines: 39 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 returns "f1 ctrl" press 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 returns "f1 reg" press 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