Hello

thank you for ION.

I have the same problem i can't use fullscreen mode. I try your solution but
it's don't work.

I had ioncore.write_savefile("windowinfos", cwin:get_ident()) but there is
not file "windowinfos.lua"

I'm on Debian and i use iceweasel.

uname -a
Linux LMG 2.6.31-1-amd64 #1 SMP Mon Nov 16 04:44:38 UTC 2009 x86_64
GNU/Linux

and i use iceweasel. I had the block

defwinprop {
    class = 'Iceweasel',
    instance = 'Navigator',
    match = function(prop, cwin, id) return is_fullscreen(cwin); end,
    switchto = false,
    flash_fullscreen = true,
}

but nothing.



See my cfg_kludge_flash.lua:

_NET_WM_STATE = ioncore.x_intern_atom('_NET_WM_STATE', false)
_NET_WM_STATE_FULLSCREEN = ioncore.x_intern_atom('_NET_WM_STATE_FULLSCREEN',
                                                 false)

function is_fullscreen(cwin)
    local state = ioncore.x_get_window_property(cwin:xid(), _NET_WM_STATE,
4,
                                                1, true)
    if state then
        for k, v in pairs(state) do
            if v == _NET_WM_STATE_FULLSCREEN then
                return true
            end
        end
    end
    return false
end

defwinprop {
    class = 'Firefox-bin',
    instance = 'Firefox-bin',
--    match = function(prop, cwin, id)
--              local geom = cwin:geom()
--              return is_fullscreen(cwin) and geom.w == 200 and geom.h ==
200
--          end,

    match = function(prop, cwin, id) return is_fullscreen(cwin); end,
    switchto = false,
    flash_fullscreen = true,
}

defwinprop {
    class = 'Iceweasel',
    instance = 'Navigator',
--    match = function(prop, cwin, id)
--              local geom = cwin:geom()
--              return is_fullscreen(cwin) and geom.w == 200 and geom.h ==
200
--          end,

    match = function(prop, cwin, id) return is_fullscreen(cwin); end,
    switchto = false,
    flash_fullscreen = true,
}


ioncore.get_hook('clientwin_do_manage_alt'):add(
    function(cwin, table)
        --ioncore.write_savefile("windowinfos", cwin:get_ident())
        local winprop = ioncore.getwinprop(cwin)
        if winprop and winprop.flash_fullscreen then
            local timer = ioncore.create_timer()
            timer:set(200, function() cwin:goto() end)
            return true
        else
            return false
        end
    end
)


Please help me

Reply via email to