Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: bug with mit server on sun sparc staion? Message-ID: <9103060702.AA23733@lightning.McRCIM.McGill.EDU> Date: 6 Mar 91 07:02:04 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 32 > I am having alot of trouble with interclient communication. I am > trying to use client events. I think this may be a bug in the X11r4 > (I am new to X and do not know where to post bugs). My code works > when run on a sun sparc 1+ running openwindows version 2 X server, > but not when I run with the MIT x server on the same machine? > X Error of failed request: BadValue (integer parameter out of range for operation) > Major opcode of failed request: 25 (X_SendEvent) > Resource id in failed request: 0xffffffff This is a bug in your program, which the OW server is letting you get away with but the MIT server isn't. You are, I have no doubt, passing an event-mask of -1 (or ~0, or some other way of specifying "all bits set"). This is not legal. From the protocol document: SendEvent [...] event-mask: SETofEVENT and then, in the appendix giving the encoding, SETofEVENT [...] #xfe000000 unused but must be zero Thus, 0xffffffff includes all 7 of the disallowed bits; the MIT server is quite right to generate an error. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu