Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: victorv@issi.lcs.mit.EDU (Victor Villalpando) Newsgroups: comp.windows.x Subject: Mouse events using XtaddEventHandler... Message-ID: <9103210107.AA03665@issi> Date: 21 Mar 91 01:07:22 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 17 I want to write an application that will let me create and manipulate Motif widgets on a Xt Shell. That is move the Motif widgets around a shell or Motif bulletinboard once it has been created. The problem is that if I set the event handler using XtAddEventHandler to the parent widget and pass the widget I want to move as the client data I only see the x and y of the widget being passed. I dont want the x, y of the widget I want the x,y of the mouse. I tried looking at every XEvent structure and all I see is the widget and not the mouses x,y. Does anyone out there know how I can get the mouses x,y. I also tried sending a NULL as the client data and I think that is what I should do, but then the event pointer is nil and I cant see the XEvent stuff that I need. Thx, victorv