Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!oakhill!razdan From: razdan@chanakya.oakhill.uucp (Anshuman Razdan) Newsgroups: comp.windows.x Subject: state mask in button Press and Button Release Message-ID: Date: 19 Feb 90 23:27:30 GMT References: button_event->state Sender: news@oakhill.UUCP Organization: Motorola Inc., SPS CAD, Austin, Texas. Lines: 28 This question is regarding the state component of the XButtonEvent (Button press or Button Release). I am running X11R4 on sun 3/470. When I have a Button Press or Button Release events reported to me the state member is NULL (or 0 as it comes out in the printf). This is the case no matter what modifier is present i.e. ShiftMask etc. Surprisingly, even the state does not reflect the appropriate number of the Button pressed (for ex: if button press was caused by Button2 then the state member should have the Button2Mask turned on). Although, one can find out this from the button member of the event structure (But that is not the point). My question is: Is X designed to report the XButtonEvent in the way I have described or is it just me and my server that behave in this particular way. Does any body have any input on this? May be it is a policy issue, may be it is a bug - who knows!!! Anshumna Razdan Sector CAD Motorola, Austin oakhill!chanakya!razdan@cs.utexas.edu PS: I selected for the event thru XtAddEventHandler (if that makes any difference) and only one button press event was generated.