j k <[EMAIL PROTECTED]> writes:

> I added wacom to the subject because my question has it's origin in a
> problem I have with the a program
> using a wacom tablet, but for debugging purpose I wrote a small Xt program
> (used a Xaw widget, but same behavior with
> a Motif widget) for testing.....
> 
> this progam creates a window, and adds an XtEventHandler with:
>    int mask = ButtonPressMask | ButtonReleaseMask |
>      EnterWindowMask | LeaveWindowMask |
>      PointerMotionMask;
> 
> 
> The question is:
> 
> Why  do I get a pair of Enter/Leave Window events before each  mouse
> buttonPress ?
> 
> A simple X program selecting on the same events doesn't show this (for
> me strange) behavior, i.e. there
> are no Enter/Leave events before a buttonPress, only when (as expected)
> the pointer crosses the window
> boundaries.
> 
> Thank's for any response.

I don't think this has anbything to do with the Wacom or Xt.

Using metacity? There is a known metacity issue where metacity
does an XGrabButton on toplevel windows that causes such Enter/Leave
events.

(It's also possible other window managers cause the same behavior)

The difference here between your simple X test case and the Xt
test case is probably whether you are selecting on the toplevel
window or a child.

Regards,
                                        Owen
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to