Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!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: Iconification from another program Message-ID: <9106150127.AA12941@trantor.Eng.Sun.COM> Date: 15 Jun 91 01:27:22 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 24 I'm working on a client which forks off some other clients. I am trying to determine how the first program can iconify all of the others (ie Iconify Session). As I understand it, the window state is private and cannot be modified by a program other than the window manager. Can another program use the same mechanism?? The WM_STATE property is indeed private and shouldn't be modified by programs other than the window manager. However, programs can indeed request state changes of windows that they didn't create. All you need is the XID of the windows of the clients you fork off. Once you have these IDs, you can call XIconifyWindow() and XMapWindow() to iconify and deiconify them. Now, getting your hands on the XIDs of the other windows may be tricky. If you wrote the child program, one approach is to have it write its window id(s) into a pipe back up to the parent. s'marks Stuart W. Marks ARPA: smarks@eng.sun.com Windows & Graphics Software UUCP: sun!smarks Sun Microsystems, Inc.