Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!think.com!mintaka!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Novice needs help Message-ID: <9008260836.AA09112@Larry.McRCIM.McGill.EDU> Date: 26 Aug 90 08:36:57 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 32 > I have been working with a program which is basically to display an > image created by another program. When I iconify the first program, > a few seconds later it dies with: > X Error of failed request: BadMatch (invalid parameter attributes) > Major opcode of failed request: 42 (X_SetInputFocus) > Minor opcode of failed request: 0 > Resource id in failed request: 0xe00002 > Serial number of failed request: 59 > Current serial number in output stream: 60 > I have the source, but I am a novice with X-windows. Can anyone give > me some advice as to what may be going wrong? Or at least a hint to > which FM I should read? I would guess that the program does not realize it has been iconified and is trying to grab the keyboard focus and set it to one of its windows - but the window in question is not viewable because it or one of its ancestors has been unmapped by the window manager as part of the iconification process. Check with xlswins before doing the iconify and see if the "Resource id in failed request" isn't one of the program's windows. Also, does it by any chance die as soon as you move the mouse onto something related to it (like its icon, or its slot in twm's icon manager)? It may be getting an EnterNotify or FocusIn event and misunderstanding (and mishandling) it. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu