Tuomo Valkonen <[EMAIL PROTECTED]> wrote:
>On Thu, Nov 04, 2004 at 03:07:06PM +0100, Jan Johansson wrote:
>> I would like new application windows to be created all the way to
>> the right of the current WIonWS.
>
>For this you must use the ionws_placement_alt (iirc; check heuristics.lua
>in any case from the ion2 scripts repository) hook. clientwin_added_hook
>is something that is called after the window has already been placed.
Ohh, I was unclear. I am only working with one frame. Having two
xterms the title reads
*xterm* | xterm<1>
where xterm has focus. Starting a new xterm produces
xterm | *xterm<2>* | xterm<1>
I would like
xterm | xterm<1> | *xterm<2>*
or
*xterm* | xterm<1> | xterm<2>
>> which makes me believe that the
>> function of a "clientwin_added" hook recieves one argument of
>> type "WClientWin" and from that I am trying to access a MPlex
>> that I can use to move the new window.
>
>That's correct.
In pseudo code what I am looking for is
add_to_hook("clientwin_added",
function(clientwin)
-- This is the stage I am looking for and where I
-- have just dreamed up a function name
clientwin_handler=MPlex.get_handler(clientwin)
MPlex.move_to_index(clientwin_handler, clientwin,
WMPlex.managed_count(clientwin_handler))
end
)
>> which does stuff just after SIGUSR1 but when creating new windows
>> crashes ion.
>
>Hmmm.. I don't get any errors with the script even running it through
>valgrind. Can you provide any more details?
I can no longer reproduce this I must have been in a strange
state after restarting with broken configs.