Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!godot!sherouse From: sherouse@godot.radonc.unc.edu (George W. Sherouse) Newsgroups: comp.windows.x Subject: bug/misfeature with (Button*MotionMask | PointerMotionHintMask)? Message-ID: <873@godot.radonc.unc.edu> Date: Mon, 28-Sep-87 10:07:49 EDT Article-I.D.: godot.873 Posted: Mon Sep 28 10:07:49 1987 Date-Received: Tue, 29-Sep-87 05:36:19 EDT Reply-To: sherouse@godot.UUCP (George W. Sherouse) Distribution: world Organization: Radiation Oncology NCMH/UNC, Chapel Hill, NC Lines: 50 Keywords: bugs and/or ignorance run rampant I would very much like to select motion events on Button2-down in such a away that I receive a sparse stream of "sorta-latest" positions rather than a very fine-grained stream of barely-perceptible motions. In X10 this compression was semi-automatic - if you wanted to see all events you had to say so with XExpandEvents. [In the following please excuse the many waffle words but the document is abundantly unhelpful regarding these details.] It appears that the X11 routine XGetMotionEvents was intended to provide this functionality by allowing me to skim all the MotionNotify events off the queue whenever I needed to and compress them myself. It further appears that PointerMotionHintMask is intended to partially address this as well but by my reading does not guarantee that you will receive an event reflecting the latest stop position unless you release the button. Well, 1. I have been unable to bet XGetMotionEvents to return any more than 0 events under any circumstances. I have twiddled *everything*. What's the magic? BTW, where is the meaning of the Time structure defined? Yes, I know it is milliseconds, but milliseconds since Jim Gettys' birth or what? I have been setting 'start' to the time of the first motion event I see and adding 1000 to that for 'stop'. I would expect that to return all events within one second after the first event. I have also tried numerous other fruitless variations. 2. I have been unable to generate a motion event with state == 'NotifyHint'. 3. Is PointerMotionHintMask intended to be a modifier of the other MotionMasks or a peer? That is, am I supposed to get hints about motion with button2 pressed or ((hints about motion) && (button2 pressed motion events)) if I specify (PointerMotionHintMask | Button2MotionMask)? 4. It appears that (PointerMotionMask | PointerMotionHintMask) generates events with much coarser granularity (perhaps compressed?) than does PointerMotionMask alone or Button2MotionMask alone or (Button2MotionMask | PointerMotionHintMask). I apologize if there is something "well documented" which I am missing but god knows, I've tried... :-) Thanks for any insight. Configuration: clients running on a VAX-11/750 under BSD 4.3, server running on an 8-plane VAXstation-II/GPX under Ultrix 1.2. - George