Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!decwrl!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: XGrabPointer bug in R4? Message-ID: <2743@bacchus.dec.com> Date: 13 Feb 90 20:48:51 GMT References: <1990Feb13.031943.3974@world.std.com> Sender: news@decwrl.dec.com Reply-To: klee@decwrl.dec.com Organization: DEC Western Software Laboratory Lines: 19 In article <1990Feb13.031943.3974@world.std.com>, madd@world.std.com (jim frost) writes: > XGrabPointer, using owner == True, returns BadValue errors when an > event_mask is given. The function acts as expected (sending events > given in the event_mask to the specified window) even though it > returns this error. This error was not returned in R3; behavior > between the two versions (aside from the error return) is identical. The Xlib manual says the event mask must be "the bitwise inclusive OR of the valid pointer event mask bits". Valid events are listed under "POINTEREVENT" on p. 349 of Scheifler's DP book. Your event mask probably contains invalid events. R3 sample servers incorrectly ignored invalid events. R4 sample servers correctly give you a bad value error. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee