]> git.decadent.org.uk Git - ion3.git/blobdiff - debian/cfg_kludge_flash.lua
Update cfg_kludge_flash for Flash 10
[ion3.git] / debian / cfg_kludge_flash.lua
index 54fca80aa219f62e44b06ff9425daa73dd06eb21..69e03b0fdbc9d4c9da0966202fa9f095c71dff9b 100644 (file)
@@ -1,8 +1,7 @@
--- 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 set focus 200 ms after
--- such a window is mapped (this may need to be adjusted on slower
--- computers).
+-- Flash player opens full-screen windows from Firefox.  It closes
+-- them if they lose focus, but also if they get focus too quickly.
+-- Therefore set focus 200 ms after such a window is mapped (this may
+-- need to be adjusted on slower computers).
 
 _NET_WM_STATE = ioncore.x_intern_atom('_NET_WM_STATE', false)
 _NET_WM_STATE_FULLSCREEN = ioncore.x_intern_atom('_NET_WM_STATE_FULLSCREEN',
@@ -23,10 +22,7 @@ end
 
 defwinprop {
     class = '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,
 }