Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!esvax.berkeley.edu!bchen From: bchen@esvax.berkeley.edu (Benjamin Chen) Newsgroups: comp.windows.x Subject: Help with XGetWindowAttributes Message-ID: <31206@ucbvax.BERKELEY.EDU> Date: 10 Sep 89 02:17:40 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: bchen@esvax.berkeley.edu (Benjamin Chen) Organization: University of California, Berkeley Lines: 30 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"