Grabbing mouse events

Hi,

I am writting an application that needs to know when a mouse event occurs. I have tried to use XtAddEventHandler() but that only worked if mouse events occured within the specified widget. My application is interested in all mouse events.

Any Help??


squeen

squeen's picture

XtAddEventHandler( w,

XtAddEventHandler( w, EnterWindowMask, FALSE, yourCallback, NULL );
XtAddEventHandler( w, ButtonPressMask|OwnerGrabButtonMask, FALSE, yourCallabck, NULL );
etc.