Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!julius.cs.uiuc.edu!apple!snorkelwacker!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Shaping windows in Xlib Message-ID: <9009112240.AA27376@Larry.McRCIM.McGill.EDU> Date: 11 Sep 90 22:40:46 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 20 > I am trying to shape a window in X11R4 using Xlib. I want to make it > a round-rect. Anybody know how to do this? I'm not sure what you mean by "a round-rect", but it doesn't make much difference. Strictly speaking, this is not possible within Xlib. However, the SHAPE extension looks and feels (:-) like part of Xlib. Assuming you accept it as such.... You use XShapeCombineRegion, XShapeCombineRectangles, XShapeCombineMask, XShapeCombineShape, and/or XShapeOffsetShape to manipulate window shapes. (There are other routines as well; see the documentation.) In your case, I would guess that you probably want to use XShapeCombineMask. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu