Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!spdcc!merk!alliant!linus!cvbnet!caribe!aperez From: aperez@caribe.uucp (Arturo Perez x6739) Newsgroups: comp.windows.x Subject: Re: event mask to XGrabPointer et al. Message-ID: <292@cvbnet.Prime.COM> Date: 21 Dec 89 20:09:12 GMT References: <8912182057.AA05745@expire.lcs.mit.edu> Sender: postnews@cvbnet.Prime.COM Lines: 44 From article <8912182057.AA05745@expire.lcs.mit.edu>, by rws@EXPO.LCS.MIT.EDU (Bob Scheifler): > > calls to XGrabPointer() with an event mask of -1, which caused a > problem with the Sony R3 server (invalid argument). > > That actually makes it a post-R3 server, then. :-) This is a typical > bug in R3 clients that will cause them to lose against strict R4 servers. > > Is -1 a special value meaning "all events that apply", > > -1 is not treated special by the server. The set of legal bits for the > event mask in an XGrabPointer is defined in the protocol specification > for GrabPointer (page 379 in the DP book) as SETofPOINTEREVENT. This > set is given on page 349. Bit encodings are shown on page 545. There, unfortunately, doesn't seem to be any include files that have this entity (i.e. SETofPOINTEREVENT) defined. Actually, I had found this bug in xlock (it happens to be one of the most popular programs around here) and substituted #define ALL_POINTER_EVENTS (ButtonPressMask|ButtonReleaseMask|PointerMotionMask| PointerMotionHintMask|Button1MotionMask|Button2MotionMask|Button3MotionMask|Butt on4MotionMask|Button5MotionMask|ButtonMotionMask) I presume that this is the complete set? Oh, BTW, there seem to be a lot of programs suffering from X Error: BadCursor Request Major code 1 () Request Minor code 0 ResourceID 0xfd880ee0 Error Serial #3 Current Serial #14 And why do I get a protocol error when specifying a font directory without a fonts.dir file? Arturo Perez ComputerVision, a division of Prime aperez@cvbnet.prime.com Too much information, like a bullet through my brain -- The Police