Re: Youtube fullscreen not working

Ben Hutchings <ben-/[email protected]> Sun, 22 Nov 2009 22:47:47 +0000
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <1258930067.16258.2.camel@localhost>
On Sun, 2009-11-22 at 22:16 +0000, Ben Hutchings wrote:
> On Sun, 2009-11-22 at 15:10 -0500, Timandahaf wrote:
> > When I hit the fullscreen button inside a youtube video in firefox, the
> > video just disappears, and I'm left with the browser without the video.
> > There's no new full-screen workspace created. Pressing either alt-tab or
> > Escape has the same effect: the video comes back into its original
> > position embedded inside the browser. I don't think I've ever had this
> > work correctly in the past either.
> > 
> > Any idea why this is happening/how to fix this?
> 
> Flash seems to do stupid things with window focus.  I had a workaround
> for an earlier version of Flash[1] but it no longer works.
> 
> Ben.
> 
> [1] http://git.decadent.org.uk/gitweb?p=ion3.git;a=blob;f=debian/cfg_kludge_flash.lua

It seems that Flash no longer sets the initial window size to 200x200
sizes but to the current screen size.  So changing:

    match = function(prop, cwin, id)
               local geom = cwin:geom()
               return is_fullscreen(cwin) and geom.w == 200 and geom.h == 200
           end,

to:

    match = function(prop, cwin, id) return is_fullscreen(cwin); end,

makes it behave, though this might have false positives.

Ben.

-- 
Ben Hutchings
Unix is many things to many people,
but it's never been everything to anybody.
signature.asc (application/pgp-signature, 828 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIVAwUASwm/jee/yOyVhhEJAQLjOBAAo1Ar0b2Iv65LhAC2yqG0TsVOmAWvPIYe
8kwjfWlYNP0TQhF2raaNZczm274QhJNe1qeaFDK3QV2sIt/v9qlvF45adNUGfCS3
8tPdIl+Lo1tHSDXZCeQ+715zOnH2mvkl5vhK5OJ7xTc5zWCT17E3kq2fBchecE64
ZNLbzZYrX78MOHU+KQerdEDlSY1oFW6wvScX+38OhtvJvbVBgqR0OQzgdq0z17v8
KZoP+iJ2jDKsjU/mBuwNw4944YXPDuECT8ZDkPxQFh+tKISKP8G7FJZGPNrvx+Qn
bo+RzzoLYsfWeIVSzZaEexnqhkodPjUxvUVcyb3+jLSuSW2POq84w/UnkYRsBR4r
mWET/HAxbBpxcXzhDk/xBujeV7B0m7YngbZgJoW28485A+DpfAd9f3hHREbDqXUn
6mMP0oPYTeAydMxAAm5KUxMY2n7xZoRlIT47ZLj8V9GWOsr3j3HgvVJjO5d3D8X8
g5LXBg8la0IavOkS/IlAI70Cuyde6QB9hzWS7wHKIVqoa0nFO4c4FOFSuQ8IDDXq
Fy32AHjbkvC8FyKeRbPAnwtc6o/E7sI1HGbdvGSgNu0i4GM6aUW89rVL4WbG1MKm
LT06YFLOPuUxC8ZmavevPjEdtJEfXKlmvN4mh+MLQETSbR1bSbjwEotj60vtw99U
yK4eTsBfJeU=
=FsvC
-----END PGP SIGNATURE-----