🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.andrew
Article #1975

im_SetInteractionEvent doesn't do what the documentation says

#1975
From: Guy Harris
Date: Thu, 14 Dec 1989 02:45
15 lines
1285 bytes
First, it doesn't return "void", it returns the event queued up by
"im_EnqueueEvent" to cause the specified function to be called.

Second, and more importantly, the function does *not* get called on the
next interaction, at least under X11.  The problem appears to be that
the event isn't triggered until the specified time increment has
occurred, so it never gets moved to the "pendingInteractionEvents"
queue, and thus never gets seen by the main interaction loop.

Is this intentional?  As I read the ATK documentation, the event queued
up by "im_SetInteractionEvent" should occur either on the next user
interaction or after the specified timeout, whichever comes first.  This
is definitely not happening, as can be attested to by the fact that, if
you type ^G and get the "Cancelled." message, the "Cancelled." message
stays on the message line until replaced by some other message.
Technical Details
Message-ID: <2715@auspex.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!auspex!guy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!auspex!guy
From: guy@auspex.UUCP (Guy Harris)
Newsgroups: comp.soft-sys.andrew
Subject: im_SetInteractionEvent doesn't do what the documentation says
Message-ID: <2715@auspex.UUCP>
Date: 14 Dec 89 02:45:15 GMT
Reply-To: guy@auspex.auspex.com (Guy Harris)
Organization: Auspex Systems, Santa Clara
Lines: 15