Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: simple X11 server question.... Message-ID: <9005041557.AA18853@xenon.lcs.mit.edu> Date: 4 May 90 15:57:23 GMT References: <7225@ncar.ucar.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 33 > I'm curious why the server grows in size when images are displayed on > the root window. I've noticed that root images require about a Meg of > space. > > Why doesn't the default gray stipple pattern require as much memory? > > Is it because the stipple pattern is a small bitmap which is remapped > over the size of the screen and images are pixmaps covering the entire > screen? The short answer is: Yes. Window backgrounds can be one of two things: a solid color or a tile. The tile is the same depth as the window but can be any size. If the tile is too small, it is replicated to cover the window. If too large, it is clipped to fit. As the tile is the same depth as the window, a full-screen alternate root-window image (like xphoon) can consume quite a bit of memory on color machines (1024x860 bytes on my machine). The default root-window tile is only 4x4 pixels. You can play with xsetroot -bitmap and the files in mit/X11/bitmaps to see the effects: $ xsetroot -bitmap /usr/include/X11/bitmaps/escherknot Keith Packard MIT X Consortium