Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: Stuart.Marks@eng.sun.COM (Stuart Marks) Newsgroups: comp.windows.x Subject: Re: icons and twm. Message-ID: <9106062005.AA03897@trantor.Eng.Sun.COM> Date: 6 Jun 91 20:05:57 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 18 If I use XSetStandardProperties and specify an icon to window manager, the icon cannot be destroyed. In other words, if I XFreePixmap(my icon) after setting the standard properties, the window manager loses the icon. It would seem to me that the window manager should cache the icon pixmap. No, WMs don't cache the icon pixmap. If they did, it would result in a lot of unnecessary pixmap creation, copying, and destruction. The proper thing to do is to leave the pixmap around as long as the main window exists. When your program exits, the pixmap will be destroyed automatically; the window manager won't have to destroy it manually. s'marks Stuart W. Marks ARPA: smarks@eng.sun.com Windows & Graphics Software UUCP: sun!smarks Sun Microsystems, Inc.