Hey, > [...] > This seems to be a bug in Flash. I was able to workaround this by > adding a nasty hack to cfg_ion.lua: > > -- Flash player opens full-screen windows from Firefox with size request > -- 200x200. It closes them if they lose focus, but also if they get focus > -- too quickly. Therefore delay focus for 100 ms. > -- Note that we can't create a timer in the match function, and we can't > -- change switchto in the hook function, so we need both. > > defwinprop { > class = "Firefox-bin", > match = function(prop, cwin, id) > local geom = cwin:geom() > return geom.w == 200 and geom.h == 200 > end, > switchto = false, > } > > ioncore.get_hook("clientwin_do_manage_alt"):add( > function(cwin, table) > local ident = cwin:get_ident() > local geom = cwin:geom() > if ident.class == "Firefox-bin" and geom.w == 200 and geom.h == 200 then > local timer = ioncore.create_timer() > timer:set(100, function() cwin:goto() end) > return true > else > return false > end > end > )
oh wow, very cool! Thanks. Should I report a bug for the flashplugin or would you rather import these klufges into ion? -- Best Regards, Johannes Weiss
signature.asc
Description: Digital signature