Path: utzoo!attcan!uunet!samsung!sdd.hp.com!mips!sgi!shinobu!odin!sgihub!dragon!eukanuba.wpd.sgi.com!mikey From: mikey@eukanuba.wpd.sgi.com (Mike Yang) Newsgroups: comp.windows.x Subject: Re: IS THERE A WINDOW MGR ? Message-ID: <1990Sep20.161011.15073@relay.wpd.sgi.com> Date: 20 Sep 90 16:10:11 GMT References: <772@bbking.KSP.Unisys.COM> Sender: news@relay.wpd.sgi.com ( CNews Account ) Reply-To: mikey@sgi.com Organization: Silicon Graphics, Inc. Lines: 18 In article <772@bbking.KSP.Unisys.COM>, rmarks@KSP.Unisys.COM (Richard Marks) writes: |> Could someone tell me how a client program can determine |> if there is a window manager running for a given screen? |> |> I am looking for a general mechanism. I know I can code |> up specific tests for the WM's currently available on |> my clients. Most window managers these days select for SubstructureRedirect on the root window, so that they can reparent application windows. Since only one client per window can select for these events, try selecting for SubstructureRedirect on the root window of the screen. If an error occurs (use an error handler), you can assume that a window manager is running. ----------------------------------------------------------------------- Mike Yang Silicon Graphics, Inc. mikey@sgi.com 415/335-1786