Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!quanta.eng.ohio-state.edu!kcgl1.eng.ohio-state.edu!JONESD From: JONESD@kcgl1.eng.ohio-state.edu (David Jones) Newsgroups: comp.windows.x Subject: Re: Window Managers. Message-ID: <2832@quanta.eng.ohio-state.edu> Date: 15 Aug 89 19:22:19 GMT References: <252@bii.UUCP> <1946@imelda.Solbourne.COM> Sender: news@quanta.eng.ohio-state.edu Organization: Ohio State University Lines: 18 Tom LaStrange (<1946@imelda.Solbourne.COM>) writes: > Set up an error > handler and XSelectInput on the root window with SubstructureRedirectMask. > If you go through your error handler, chances are good that a window manager > is running. The only problem is that if you start your application > when no window manager is running, how do you detect when a window manager > is started sometime later? You don't need to go through all those circumlocutions, just use XGetWindowAttributes on root window and check the AllEvents mask for the SubstructureRedirectMask event. David L. Jones | Phone: (614) 292-6929 Ohio State Unviversity | Internet: 1971 Neil Ave. Rm. 406 | jonesd@kcgl1.eng.ohio-state.edu Columbus, OH 43210 | jones-d@eng.ohio-state.edu Disclaimer: A repudiation of a claim.