Path: utzoo!attcan!uunet!wuarchive!usc!cs.utexas.edu!asuvax!ncar!boulder!stan!ninja!toml From: toml@ninja.Solbourne.COM (Tom LaStrange) Newsgroups: comp.windows.x Subject: Re: ICCCM and colormaps---simple question Message-ID: <1990Feb14.144147.22813@Solbourne.COM> Date: 14 Feb 90 14:41:47 GMT Sender: news@Solbourne.COM Organization: Solbourne Computer, Inc. Lines: 22 >> ... I was also wondering; instead of having >> the user specify that no window manager is running, is there a >> way for the application to automatically detect that? For example, >> twm seems to be able to detect that another window manager is >> already running; > >Twm detects another window manager when calling XSelectInput on the root >window. If this call fails, it assumes that another wm is there. (Only >one client is allowed to select button press events on a window). Almost. It's actually the SubstructureRedirectMask that only one client is allowed to do. While this will work most of the time to determine if a window manager is running, I don't think there's anyway to determine if the window manager goes away later. -- Tom LaStrange Solbourne Computer Inc. ARPA: toml@Solbourne.COM 1900 Pike Rd. UUCP: ...!{boulder,sun}!stan!toml Longmont, CO 80501