Path: utzoo!attcan!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!hp-pcd!hpcvlx!keith From: keith@hpcvlx.cv.hp.com (Keith Taylor) Newsgroups: comp.windows.x Subject: Re: window manager's reparenting Message-ID: <100920241@hpcvlx.cv.hp.com> Date: 2 Aug 90 20:42:13 GMT References: <58817@lanl.gov> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 29 >/ hpcvlx:comp.windows.x / aob@lanl.gov (Alexander O. Brown) / 10:14 am Aug 1, 1990 / >If I understand it right, a window manager will create a new >window like the orignal window with decorations and with the root >as the parent, and then reparent the original window so that >its new parent is the new window with decorations. > >In a program I am doing, I am selecting a window with the mouse and >it is giving me the window generated by the window manager (the >one with decoartions). How can I get the original window >when I have this new decoarted window? Does the function >XmuClientWindow achieve this (I am currently working >with release 3, so I cannot tell if it will work)? > >Any help would be appreciated. > > Alex Brown > aob@beta.lanl.gov >---------- What you need to do is look through the children of the window you get until you find the window with the WM_STATE property. This is the original client. The window manager (at least an ICCCM compliant one) puts a WM_STATE property on the windows it manages. Keith M. Taylor keith@cv.hp.com Hewlett-Packard Corvallis, Oregon