Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!snorkelwacker!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Crash in XGrabpoiter X11R4 Message-ID: <9010040611.AA07661@Larry.McRCIM.McGill.EDU> Date: 4 Oct 90 06:11:57 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 45 > I am runnign X11R4 under SunOs 4.1. When I make a call to > XGrabPoiter I get the following X error message: > X windows Protocol error: BadValue (integer parameter out of range for operation) > Major opcode of failed request: 26 > Minor opcode of failed request: 0 > Resource id in failed request: 0x8038 > Serial number of failed request: 553 > Here's the actual call: > XGrabPointer(dpy, menu->menuWindow, FALSE, > ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | ExposureMas k, > GrabModeAsync, GrabModeAsync, None, None, CurrentTime); What is ExposureMask doing there? From the Xlib document, the description of the event_mask argument is Specifies which pointer events are reported to the client. The mask is the bitwise inclusive OR of the valid pointer event mask bits. From later on, in chapter 8, event type. The following table lists the event category and its associated event type or types. The processing asso- ciated with these events is discussed in section 8.4. ____________________________________________________________ Event Category Event Type ____________________________________________________________ Keyboard events KeyPress, KeyRelease Pointer events ButtonPress, ButtonRelease, Motion- Notify .... ____________________________________________________________ I sure don't see Expose events (to which ExposureMask corresponds) in the list of pointer events, so ExposureMask is an invalid bit to set in the event_mask argument, and the server is entirely correct to complain. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu