On Tue, Dec 28, 2004 at 04:00:24AM +0300, Alexander Shishckin wrote:
> function ionws_move_current(frame, dir)
>     local ws = frame
>     while ws and not obj_is(ws, "WIonWS") do
>         ws = ws:manager()
>     end

ioncore.find_manager does this, but frame:manager() should also be
enough.

>     if not ws then return end
>     local c = frame:current()
>     local other = ws:goto_dir(dir)
>     if c and obj_is(other, "WMPlex") then
>         other:attach(c, { switchto = true })
>     end
>     if other then
>         other:goto()
>     end

You shouldn't need the goto here.

-- 
Tuomo

Reply via email to