Path: utzoo!attcan!uunet!husc6!bloom-beacon!apple!vsi1!daver!athsys!jim From: jim@athsys.uucp (Jim Becker) Newsgroups: comp.windows.x Subject: Re: Is a window manager running? Message-ID: <190@tityus.UUCP> Date: 16 Nov 88 18:23:59 GMT References: <3921@omepd> Organization: Athena Systems, Inc., Sunnyvale, CA Lines: 19 From article <3921@omepd>, by praty@inteloa.intel.com (Pratyush Jaiswal): > This should be an easy one. How can a client find out if there is a window > manager running on a particular display, or not? > The sample window manager "wm" in R2 does this in the file test.c (under directory ..X.V11R2/core.src/demos/wm) by attempting to change the window attributes of the root window. It indirectly determines this through setting an errorStatus return in the resulting XError if there is already a window manager running. This is done in the file errHndlr.c in the same directory. I don't know how legit this is, but I guess it's one method! > > Pratyush. > -------------------------------------------------------------------------- > praty@inteloa.intel.com > {verdix, ogccse, tektronix, omepd, siemens}!inteloa!praty