Tuomo Valkonen <[EMAIL PROTECTED]> writes:
> On Tue, Feb 15, 2005 at 01:33:26PM +0100, Matthieu Moy wrote:
>> I don't understand how the replacement for ionws_placement_method is
>> supposed to work in ion3.
>
> http://iki.fi/tuomov/ion/doc-3/ionconf/node7.html#SECTION007100000000000000000
>
> Look for ionws_placement_alt
Hmm, I was a bit surprised to see a hook and not a callback returning
a frame. I ended up with this:
function heuristics.set_frame(cwin, ws, table)
f = heuristics.get_frame(ws, cwin, nil)
f:attach(cwin)
cwin:goto()
end
-- hook initialization
ioncore.get_hook("ionws_placement_alt"):add(heuristics.set_frame)
Where heuristics.get_frame(ws, cwin, nil) is roughly the function I
used for ion2. Is this a correct approach?
Thanks,
--
Matthieu