Ben Hutchings <b...@...> writes:

> > [1] http://git.decadent.org.uk/gitweb?p=ion3.git;a=blob;f=debian/
cfg_kludge_flash.lua
> 

Your script works for me, thanks for solving that.  I was actually fine when 
this thread started, then Ubuntu 9.10 came along and flash windows would try to 
fullscreen themselves and quickly fail.  

For others with the same problem, these are the classes and instances I find 
for that flash window that disappears too fast, for use in the above script:

defwinprop {
    class = "Operapluginwrapper-ia32-linux",
    instance = "operapluginwrapper-ia32-linux",
    match = function(prop, cwin, id) return is_fullscreen(cwin); end,
    switchto = false,
    flash_fullscreen = true,
}
defwinprop {
    class = "Firefox",
    instance = "firefox",
    name = "Firefox",
    match = function(prop, cwin, id) return is_fullscreen(cwin); end,
    switchto = false,
    flash_fullscreen = true,
}
defwinprop {
    class = "Prism",
    instance = "prism",
    match = function(prop, cwin, id) return is_fullscreen(cwin); end,
    switchto = false,
    flash_fullscreen = true,
}
defwinprop {
    class = "Exe",  -- google chrome
    instance = "exe",
    name = "exe",
    match = function(prop, cwin, id) return is_fullscreen(cwin); end,
    switchto = false,
    flash_fullscreen = true,
}


I understand they vary by distro, so here is a hook to figure out the rest:

ioncore.get_hook('clientwin_do_manage_alt'):add(
    function(cwin, table)
    ioncore.write_savefile("windowinfos", cwin:get_ident())
end)

Then restart ion, fullscreen a flash video and see what got written to ~/.ion3/
default-session--0/windowinfos.lua

Reply via email to