I got it working. But this hook get executed too often. Is there a hook
for switching workspace?

-- make dock disappear on ionWS.
local function setdock(region, state)
    return function()
        mod_dock.set_floating_shown_on(WRegion.screen_of(region), state)
    end
end
ioncore.get_hook("region_activated_hook"):add(
    function(region)
        if docktable then
            if obj_is(WRegion.screen_of(region):current(), "WIonWS") then
                ioncore.defer(setdock(region, 'unset'))
            else
                ioncore.defer(setdock(region, 'set'))
        end
    end
end
)

Jian Fan <[EMAIL PROTECTED]> wrote:

Reply via email to