Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!rochester!PT.CS.CMU.EDU!sei!sei.cmu.edu!kwh From: kwh@sei.cmu.edu (Kurt Hoyt) Newsgroups: comp.windows.x Subject: Problem with motion event handling? Message-ID: <3312@aw.sei.cmu.edu> Date: Wed, 18-Nov-87 16:03:44 EST Article-I.D.: aw.3312 Posted: Wed Nov 18 16:03:44 1987 Date-Received: Sat, 21-Nov-87 11:07:39 EST Sender: netnews@sei.cmu.edu Lines: 25 Keywords: X11 motion events On a uVax running Ultrix 1.2 and (Xqvss X11 and fixes 1-60 (except 45)): I want to write code to grab and move (or resize) a graphic object (i.e. a line, rectangle, text, etc.). I have used regions to help pick the object in conjunction with button press/release events. I now want to get motion events while a button is down so I can move the object with some sort of feedback until the button is released. Selecting ButtonMotionMask generates MotionNotifys whether or not a button is pressed. Selecting PointerMotionHintMask ONLY generates nothing. Selecting either ButtonMotionMask or PointerMotionMask along with PointMotionHintMask will generate one MotionNotify if the pointer moves and no buttons are pressed and lots of MotionNotifys when any button is pressed (followed by one MotionNotify after the button is released). XGetMotionEvents consistently has nothing to report (called initialliy with start = 0, stop = CurrentTime). None of this matches the documentation or what I expected. Other selected events: ExposureMask, ButtonPressMask, ButtonReleaseMask, KeyPressMask. Am I doing something wrong or is it time to write to xbugs? Thanks. -- "Not many people know this, but | Kurt Hoyt I'm famous" | ARPA: kwh@sei.cmu.edu -- Sam Malone | BITNET: kwh%sei.cmu.edu@cmuccvma | CSNET: kwh%sei.cmu.edu@relay.cs.net