On 2005-11-25, Jian Fan <[EMAIL PROTECTED]> wrote:
> I got it working. But this hook get executed too often. Is there a hook
> for switching workspace?

No, and I think region_activated_hook should suffice. Something like
follows might be better (this one hides the dock for fs clientwins 
and such as well):

local function my_activated_handler(reg)
    if obj_is(reg:manager(), "WScreen") then
        if obj_is(reg, "WIonWS") or not obj_is(reg, "WGenWS")
            ioncore.defer(setdock(reg:manager(), 'unset'))
        else
            ioncore.defer(setdock(reg:manager(), 'set'))
        end
    end
end

-- 
Tuomo

Reply via email to