Thanks a lot for the hint! Creating non-empty WGroupCW (btw, I really
wanted WGroupCW and not WGroupWS) works flawlessly. However, the next
bit of code, that used to work under previous ion3 version, started to
fail. The code now looks as follows (I'm simplifying it a bit for the
sake of readability, but you'll get the idea):
local tf = ioncore.lookup_region("WFrameSS", "WFrame")
local opt = {type = "WTiling", name = c, dir = "horizontal", switchto
= t.switchto, bottom = true,
split_tree = {type = "WSplitSplit", dir = "horizontal", tls = 1, brs = 1,
tl = {type = "WSplitRegion", regparams = {type = "WFrame", name =
c.."-left"}},
br = {type = "WSplitRegion", regparams = {type = "WFrame", name =
c.."-right"}}}}
local wg = tf:attach_new({type = "WGroupCW", switchto = t.switchto,
managed = { opt }})
fr = wg:bottom():split_tree():br():reg()
fr:set_mode("tiled-alt")
fr:attach_new({type = "WGroupCW", switchto = t.switchto, managed =
{{reg = cwin, bottom = true}}})
This gives no errors, but cwin gets attached to WFrame named
"WFrameSS" (a top one), and not to a newly created "Gimp-right"
WFrame. Once again, I have no idea at all how this happens, the code
worked just fine under previous versions of ion3.
--
Alexander
On Sat, Feb 23, 2008 at 10:41 AM, Tuomo Valkonen <[EMAIL PROTECTED]> wrote:
> On 2008-02-23, Alte <[EMAIL PROTECTED]> wrote:
> > local wg = tf:attach_new({type = "WGroupCW", switchto =
> t.switchto})
> > local opt = {type = "WTiling", name = c, dir = "horizontal",
> ...
>
> > local ws = wg:attach_new(opt)
>
> You can not create empty WGroupCWs. (Consider loading a saved layout
> without the old client windows (CQW) to be found. These types of
> groups have been tuned for groups as client window containers.)
> What you probably want is WGroupWS (groups tuned for workspace
> usage). Also, you're doing things the clumsy way by repeated
> attach_new. You can simply include the second layout in the
> first attach_new: managed = { opt }.
>
> --
> Tuomo