Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!hc!lanl!opus!jthomas From: jthomas@nmsu.edu (James Thomas) Newsgroups: comp.windows.x Subject: events after an XWarpPointer Message-ID: Date: 26 Apr 89 22:54:11 GMT Sender: news@nmsu.edu Organization: NMSU Computer Science Lines: 20 (I'm using X11R3 on a Sun-3 with SunOS 3.5 .) I have two label widgets on the screen. The first has separate routines XtAddEventHandler'ed for ButtonPressMask, ButtonReleaseMask, PointerMotionMask, and LeaveWindowMask . The second has separate routines XtAddEventHandler'ed for ButtonReleaseMask, PointerMotionMask, and LeaveWindowMask . In my ButtonReleaseMask routine for the first widget I call XWarpPointer with src_w=None and dest_w=. If the user's next act is to move the pointer, the PointerMotionMask routine for the second widget is called. If the next act is to press a button, the LeaveWindowMask routine for the second widget is called (with x and y values equal to the warped-to position). There are no grabs active. Has anyone seen this? I know the manual says "There is seldom any reason for calling this function.", but it also says "it generates events just as if the user had instantaneously moved the pointer ...". Jim Thomas jthomas@nmsu.edu