[ba.windows.x] Help with passive keyboard grab under Motif

sri@well.sf.ca.us (Software Research Inc) (10/09/90)

I'm trying to intercept a F1 key sequence, but I'm having problem
with the XGrabKey().  I've followed everything in the Xlib manuals,
checked the return mask....  All the variables seems to be OK, but I
can't grab the key sequence I wanted.  I'm pretty novice with X,
so any help or pointer are greatly appreciated.

Please send response to linh@sutro.sfsu.edu or apple.com!well!sr0!dang

Thanks in advance
Linh

klee@wsl.dec.com (Ken Lee) (10/09/90)

In article <21085@well.sf.ca.us>, sri@well.sf.ca.us (Software Research Inc) writes:
|> I'm trying to intercept a F1 key sequence, but I'm having problem
|> with the XGrabKey().  I've followed everything in the Xlib manuals,

In general, it is not a good idea to mix Xlib functions with X Toolkit
functions, except inside for widgets.  XGrabKey interferes with the X
Toolkit input manager.  Motif 1.1 and X11R4 include the function
XtGrabKey that you should use instead.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee