[2160] in Athena Bugs

home help back first fref pref prev next nref lref last post

buttonpress vs buttonraise events

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Thu May 4 03:36:34 1989

Date: Thu, 4 May 89 03:36:11 EDT
From: Jonathan I. Kamens <jik@ATHENA.MIT.EDU>
To: doc-bugs@ATHENA.MIT.EDU

The program viewdoc apparently monitors buttonpress but not
buttonraise events to decide when a mouse button has been pressed.

The result of this is that if you press the middle mouse button to
exit viewdoc, then it exits after the buttonpress event, and if you
have an xterm under the viewdoc where your mouse cursor is, *the xterm
gets the buttonraise event*.

The net result of *that* is that if you have text in the cut buffer,
it gets pasted into the xterm window.  This is, to say the least,
very annoying.

This bug was initially reported a *long* time ago, when viewdoc and
postps first came into use.  The fix for it is to make viewdoc use
buttonraise events rather than buttonpress events to base its actions
upon, so that xterm will never get garbage button events that were
meant for the viewdoc window.

jik

home help back first fref pref prev next nref lref last post