On Fri, Jan 16, 2004 at 04:08:57PM +0100, Felix Breuer wrote:
>  Tag/Mark a Frame so that every (or only the next) client window 
>  that is openend is attached to the tagged/marked Frame (no matter which
>  Frame has the focus at that time).

local marked

function mark_for_attach(frame)
    marked=frame
end

local function copy(t)
    local ct={}
    for k, v in t do
         ct[k]=v
    end
end

local orig_get_winprop=get_winprop

local function marked_get_winprop(cwin)
    local props=orig_get_winprop(cwin)
    if not marked then
        return props
    end
    local newprops=copy(props or {})
    newprops.target=marked:name()
    return newprops
end    

-- 
Tuomo

Reply via email to