Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: colors in X windows Message-ID: <8812201327.AA23915@EXPO.LCS.MIT.EDU> Date: 20 Dec 88 13:27:44 GMT References: <354@cwjcc.CWRU.Edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 19 The following is what I have done , but no window is displayed on the screen. Your code is rather strange looking. scrn = 1; scn = XScreenOfDisplay(dp, scrn); parent = XRootWindow(dp,0); Why are you getting screen 1, but then getting zero's root window? XMapwindow(dp, parent); There is no point in mapping the root window, it's already mapped. Also, this won't even link (it should be XMapWindow). Except for that, your program does display a window on the screen, so I don't know what your problem is.