Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!chico.pa.dec.com!klee From: klee@chico.pa.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: xlock - event mask argument to XGrabPointer Message-ID: <2296@bacchus.dec.com> Date: 18 Dec 89 18:42:57 GMT References: <1989Dec16.002825.10200@smsc.sony.com> Sender: news@decwrl.dec.com Reply-To: klee@decwrl.dec.com Organization: DEC Western Software Laboratory Lines: 14 In article <1989Dec16.002825.10200@smsc.sony.com>, dce@smsc.sony.com (David Elliott) writes: > 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? The XGrabPointer event mask has type unsigned int, so, on most hardware with sloppy compilers, putting a -1 in there will be converted to a word with all bits on. What a hack. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@decwrl.dec.com uucp: uunet!decwrl!klee