Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!apple!sun-barr!decwrl!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Another problem with X11R4 Message-ID: <3037@bacchus.dec.com> Date: 16 Mar 90 01:48:48 GMT References: <7174@pitt.UUCP> Sender: news@decwrl.dec.com Reply-To: klee@decwrl.dec.com Organization: DEC Western Software Laboratory Lines: 24 In article <7174@pitt.UUCP>, james@apollo.gl.pitt.edu writes: > X Error of failed request: BadValue (integer parameter out of range for > operation) > Major opcode of failed request: 26 (X_GrabPointer) > Resource id in failed request: 0xffff This is the infamous bogus event mask problem. The GrabPointer protocol request requires a mask of valid pointer events. Many X servers, including the X11R4 sample servers, strictly (and correctly) bounce requests with masks specifying invalid events. Some X servers, including the X11R3 sample servers, are not so strict. Some old clients, like the one you have, specify shotgun masks of 0xffff (i.e., any possible events) which bomb on strict servers. You can correct this problem by replacing the 0xffff mask, sometimes specified as (unsigned long)(-1), with a mask containing all the valid pointer events (listed on the top of page 349 in the DP book). As a temporary workaround, the X11R4 sample servers have a bug-compatibility option to accept the bogus masks, but many correct servers will not have this option. Fix your clients. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee