> > The drag, that should have been drawing a moving outline box
responds to a
> > ButtonMotionMask.
> > However since no button is being pressed nothing happens. So in my
> > understanding, it should have been a
> > PointerMotionMask instead.
> 
> Odd.  I have no trouble at all with it on my machine.  Somehow it
> manages to interactively move the box with ButtonMotionMask.  Are you
> doing this in the Xt version or the Tcl/Tk version?  That might make
> a difference.  I noticed that you changed both cases, but I don't know
> if you tested both cases.
> 
Oops, I only tested the Xt code. All other times I tested both Xt and Tk
versions, but this seemed so trivial to me, I forgot it. Now I tested
both cases and it seems to work for both.
As for the stuff working in Tk: This might be a bug in Tk itself. I had
a look at the state in the XEvent and when asking for only
ButtonMotions, Tk somehow manages to still generate an XMotionEvent
without any buttons.
Another posibility is that somewhere there is still a handler for a
PointerMotionMask that hasn't been cleaned up yet. When looking at the
source code of Tk itself, it looks like it tries to merge masks with
existing handlers whenever possible.

Erik.

_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to