On Wed, Feb 16, 2005 at 08:01:21PM +0000, David Tweed wrote:
> 3 for each r set typ=obj_typename(r)
> 
> 4 if typ=="WClientWin" it should be added to the table of client windows

Rather use obj_is(r, "WClientWin"). Checking obj_typename doesn't work if
the checked type is just a supertype of the actual type of the object
(never atm the case with client windows, though).

> 5 else if typ=="WFrame" or "WSplit" recursively call analyse(r)

There are no splits on the managed list, only the regions at the leaves
of the split tree, which can be accessed with WIonWS.split_tree.

> > 2) Use ioncore.clientwin_list and filter it by scanning downwards
> > with WRegion.manager (ioncore.find_manager might also be of use, but
> > its behaviour might not be desired in all cases).
> 
> Is the manager of a client in a frame the frame object, so that you'd have 
> to `climb-up' until reaching a WIonWS object?

Yes.

-- 
Tuomo

Reply via email to