Bug#462690: flashplugin-nonfree's new fullscreen mode doesn't work with ion3
Johannes Weiss <[email protected]>
| Newsgroups | gmane.linux.debian.devel.bugs.general,gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
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
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHnJl0zU8Oa7FEsGcRAn30AJ9tT0t5axI7vpXpLNJb9wC2+cV6HACguVXs f74b9Y72XdKjyFaN1mP+hb0= =XxI3 -----END PGP SIGNATURE-----