Path: utzoo!attcan!uunet!ginosko!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: XSendEvent Message-ID: <8908132114.AA00555@expire.lcs.mit.edu> Date: 13 Aug 89 21:14:42 GMT References:Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 13 do{ sleep(5); printf("Sending.."); k = XSendEvent(display,window,False,KeyPressMask,&send_event); printf(".returns %d\n",k); }while(1); It kinda looks like you are never forcing buffered output to be sent ... It might work better if you added an XFlush(display). But, if you are sharing the display connection between parent and child, expect all kinds of bad things to happen to you.