Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU Newsgroups: comp.windows.x Subject: Re: question Message-ID: <9102051236.AA02233@lightning.McRCIM.McGill.EDU> Date: 5 Feb 91 12:36:52 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 33 > Subject: question Surely you can come up with something more informative than that! :-) > I spent the afternoon discovering that useing ButtonMotionMask (a > mask for a MotionNotify), does not work on the sun sparcstaion (sun > 4) I am using, when the ButtonPress event is selected! Whose server? OpenWindows? MIT? Other? > Is this my imagination? Probably not, but most likely you have some mistake in your program, rather than the fault lying in the server. From what you say, it sounds as though you are asking for ButtonPressMask|ButtonMotionMask on a window, and are getting ButtonPress events but no MotionNotify events. According to my reading of the protocol document, this ought to work (ie, you should get both ButtonPress events and (when appropriate) MotionNotify events), and in a simple test program I just tried it does work. (I'm using the MIT R4 server.) If you are asking for ButtonPressMask|ButtonMotionMask but aren't seeing MotionNotify events even when a button is down, something odd is going wrong, and I would have to see the code to guess what's the matter. If this is not true, I'd need to know in what way it is inaccurate.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu