[737] in testers
XtAppAddInput doesn't allow | of conditions
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Tue May 15 02:17:47 1990
Date: Tue, 15 May 90 02:17:21 -0400
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: xbugs@expo.lcs.mit.edu
Cc: testers@ATHENA.MIT.EDU
X Window System Bug Report
xbugs@expo.lcs.mit.edu
VERSION:
R4
CLIENT MACHINE and OPERATING SYSTEM:
IBM RT/PC running AOS 4.3
DISPLAY TYPE:
NA
WINDOW MANAGER:
NA
AREA:
Xt
SYNOPSIS:
The man page for XtAppAddInput claims that under Unix, the
condition argument can be a union of the Read, Write, and Except
masks, but the code in NextEvent.c doesn't check for OR'd together
masks.
DESCRIPTION:
The code for XtAppAddInput in src/Xt/NextEvent.c expects the value
of "condition" to be one of the masks, not a union of one or more
of them. Therefore, if you pass in a condition that is the union
of two masks, an error will result. This bug has been present
since X11r3.
REPEAT BY:
Take a look at the source code.
SAMPLE FIX:
The modifications to XtAppAddInput to make it understand OR'd
masks should be relatively trivial.
Jonathan Kamens USnail:
MIT Project Athena 11 Ashford Terrace
jik@Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8495 Home: 617-782-0710