I discovered a situation where Double-Button events are
not detected.
Basically, if the widget hierachy is sufficiently deep
enough, physical events get lost before a Double,
Triple, etc., events can be detected.
Making the event ring larger solves the problem, but I
think this just postpones the issue and might have the
side effect of slowing down event processing on slower
machines.
The problem can be demonstrated with the attached code.
Double clicking on the window should produce a
Button-1, ButtonRelease-1, and Double-Button-1 message,
which it does as long as the hierarchy depth is small
(~12).
Before you argue that this kind of widget depth is
ludicrous, it's quite possible when using something
like incrTk, building up megawidgets from other
megawidgets.
-Brian
test case
Logged In: YES
user_id=22949
I don't know what happened to the attachment???
Logged In: YES
user_id=72656
I see the double button 1 register correctly using 8.4.3 on
Win2K and Linux/WindowMaker.
Logged In: YES
user_id=22949
Improved example script that makes the problem clearer.
working and non-working instances of bug