Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!apple!mips!smsc.sony.com!dce From: dce@smsc.sony.com (David Elliott) Newsgroups: comp.windows.x Subject: xlock - event mask argument to XGrabPointer Message-ID: <1989Dec16.002825.10200@smsc.sony.com> Date: 16 Dec 89 00:28:25 GMT Reply-To: dce@smsc.Sony.COM (David Elliott) Organization: Sony Microsystems Corp. Lines: 20 In the current version I have of xlock (R3 and R4Beta), there are two calls to XGrabPointer() with an event mask of -1, which caused a problem with the Sony R3 server (invalid argument). I changed it to NoEventMask, and xlock worked. I then tried changing it to a mask made by OR'ing together all the masks listed in , and that didn't work. I started looking at the events one at a time, and found that KeyPressMask and KeyReleaseMask were both invalid, but ButtonPressMask and ButtonReleaseMask are fine (this makes sense, since grabbing the pointer has nothing to do with Key events). Is -1 a special value meaning "all events that apply", so that the server should accept the value unquestioningly? Or, should xlock be more specific with its event mask in this case? -- David Elliott dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce | (408)944-4073 "As I never read this newsgroup or my email, please send replies via carrier pigeon."