Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!rutgers!bellcore!dana From: dana@dino.bellcore.com (Dana A. Chee) Newsgroups: comp.windows.x Subject: Re: Novice X11 question on Borders Message-ID: Date: 14 Feb 89 13:33:32 GMT References: <35027@tut.cis.ohio-state.edu> Sender: news@bellcore.bellcore.com Distribution: usa Organization: Bellcore, Morristown, NJ USA Lines: 28 In-reply-to: hall@tulip.cis.ohio-state.edu's message of 13 Feb 89 22:12:04 GMT In article <35027@tut.cis.ohio-state.edu> hall@tulip.cis.ohio-state.edu (john hall) writes: However, my problem is that myforeground is WHITE and I still get a BLACK border. Using essentially the same code ( copy and change) I have created a subwindow that does have the correct border color ==> But I am still mystified why the top level window does not want to display a white border. Thanks for the help, though. John Hall The reason is that the window managers control the border colors on the top level windows (at least awm and twm do). For a test, kill your window manager and then run the program. You should see what you expect. My vote isn't in yet if I like the idea, but since you can't query a window for its border (pixel/tile), when the window manager reparents the top window to add title bars, etc, it can't set the parent's border to be the same as the child had (I wish it could, though). -- +*************************************************************************+ * Dana Chee (201) 829-4488 * * Bellcore * * Room 2Q-250 * * 445 South Street ARPA: dana@bellcore.com * * Morristown, NJ 07960-1910 UUCP: {gateways}!bellcore!dana * +*************************************************************************+