On 2008-10-30, Christian Walther <[EMAIL PROTECTED]> wrote:
> One of these workspaces contains Xnest with a Citrix client running
> Lotus Notes (Citrix is by far the whorst App to run on any Unix host
> since it behaves like a window manager in every regard except for
> displaying icons of its iconified windows).

It won't work on a non-tiled workspace? 

> So, I would like to have some commands to manipulate either the
> scratchpad or a floating split:
> - making it (dis)appear
> - resize and reposition it (to be a column on the right side of the
> screen, or a row taking all screen width on the bottom half of the
> screen, or even resizining it to scatchpads default size).
>
> Thing is: I've no idea how to do this, and hope for your help.
> Yes, I did take a look at lua, so I'm afraid to do some coding. I just
> don't know what ion3 resources I need.

Let us consider the scratchpad first: You need to request a new geometry 
for the object. To do so, you probably first want to find bounds for 
the geometry. For the present setting, the width and height of the
parent region is good enough a bound. To get the parent region, you
use WRegion.parent. And to get its geometry, WRegion.geom. Then you
calculate the new geometry within the parent region, and use 
WRegion.rqgeom on the scratchpad frame.

The mechanism for floating splits is similar, and the above might just
work, but you may instead want rqgeom on the floating split object.
If you want to do a detailed search for the split object, you can use
WTiling.node_of and WSplit.parent and obj_is testing or something.
Or you can use WTiling.split_tree and scan towards the leaves.

But such scanning may not be necessary. It may just suffice
to get WTiling.split_tree, check that it's a WSplitSplit (or
WSplitFloat), and use WSplitWSplit.current() as the node to
be resized.

If you're in a WTiling binding callback, _ is the tiling, and
_sub the frame. If you're in a WFrame binding callback, _
is the frame, and to get the tiling, you use _:manager().

Hopefully that helps. Ask more if it doesn't.

-- 
"[Fashion] is usually a form of ugliness so intolerable that we have
 to alter it every six months." -- Oscar Wilde
"The computer industry is the only industry that is more fashion-driven
 than women's fashion." -- RMS


Reply via email to