Path: utzoo!attcan!uunet!wuarchive!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!AI.MIT.EDU!joe From: joe@AI.MIT.EDU (Joe Heel) Newsgroups: comp.windows.x Subject: border pixel Message-ID: <8911282344.AA01428@special-k> Date: 28 Nov 89 23:44:13 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 30 I'm running X11 R3 and awm. I can't seem to figure out how to set the border color of a window I create. Here's some of what I tried to get a black border color (on a bw machine). attr.border_pixel = XBlackPixel(dpy, 0); attr.event_mask = ButtonPressMask | ExposureMask; attr.background_pixel = WhitePixelOfScreen(scr); win = XCreateWindow(dpy, RootWindowOfScreen(scr), winx, winy, winw, winh, 0, DefaultDepthOfScreen(scr), InputOutput, DefaultVisualOfScreen(scr), CWBackPixel | CWBorderPixel | CWEventMask, &attr); gc = XCreateGC(dpy, win, 0, NULL); Other alternatives I tried instead of the first line above were attr.border_pixel = XBlackPixel(dpy, 0); attr.border_pixel = BlackPixel(dpy, scr); attr.border_pixel = BlackPixelOfScreen(scr); Nothing works. What's wrong? Thanks for the help. -- Joe