bchen@esvax.berkeley.edu (Benjamin Chen) (09/10/89)
I'm having a problem with a pretty innocent looking procedure, XGetWindowAttributes. I get the following XError: X Protocol error: BadMatch, invalid parameter attributes Major opcode of failed request: 2 (X_ChangeWindowAttributes) Minor opcode of failed request: 0 Resource id in failed request: 0x90001a Serial number of failed request: 77 Current serial number in output stream: 83 Program exiting with return status = 1. A couple things puzzle me. According to O'Reilly's Xlib Reference Manual, XGetWindowAttributes is not on the the list of functions that generate X_ChangeWindowAttributes protocol request. (It should, of course, generate the corresponding X_GetWindowAttributes request.) My display pointer is fine, (as all functions previously worked, and display macros return the right thing.) The only possibilty I see is a bad window passed. The window was created using XCreateSimpleWindow. It passed a number of X functions that used this window before sticking on XGetWindowAttributes. Any ideas? BC Benjamin Chen Office: 550-A4 Cory Hall, 2-4332 UUCP: !ucbvax!esvax!bchen HEPNET: LBL::"bchen@esvax.Berkeley.EDU"