Re: attach_new problems

Alexander Barinov <[email protected]>
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <1203873202.3431.12.camel@twin>
Yes, 'set_mode' operates as expected, modifying the right frame.

A couple of hints that can help you to track down the issue:

First, this code operates inside 'clientwin_do_manage_alt' hook.  Inside
another 'clientwin_do_manage_alt' hook doing absolutely different thing
I have the same problem - the window is not added to a newly created
WGroupCW.

Second, attaching WClientWin to the same frame in ioncore.defer works
just fine.  This could be a solution, but I cannot create an empty
WGroupCW and later attach WClientWin in ioncore.defer instead of
'clientwin_do_manage_alt' hook.

On Sun, 2008-02-24 at 15:51 +0000, Tuomo Valkonen wrote:
> On 2008-02-24, Alte <[email protected]> wrote:
> > 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.
> 
> It should work. Does set_mode operate on the correct frame?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.