Please pardon what may be a very nieve question from a newbie! Please also pardon me if this question is off topic? Otherwise, my question has a slim chance of exposing a problem in XFree86 (I highly doubt it, but we'll see).
On my XSetInputFocus() man page it says, "XSetInputFocus() can generate BadMatch, BadValue, and BadWindow errors." In looking at the source code for XFree86 4.2.1, I see XSetInputFocus() in lib/X11/SetIFocus.c always returns 1. In looking at the Xserver source code in programs/Xserver/dix/events.c, I see ProcSetInputFocus() calls SetInputFocus() which returns BadMatch, BadValue, and BadWindow (or Success). [This agrees nicely with the man page.] When my application calls XSetInputFocus() the return value is always 1 (BadRequest). BadRequest is not one of the values returned by SetInputFocus(). The value 1 is the value returned by XSetInputFocus(). So... When I call XSetInputFocus() and get a return value of 1 what does this mean? If I am supposed to get either BadMatch, BadValue, BadWindow, or Success (my preference) then where are those set? Perhaps the errors are only raised via an error handler? Thank you, Joel _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel