X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=debian%2Fcfg_kludge_flash.lua;h=69e03b0fdbc9d4c9da0966202fa9f095c71dff9b;hp=54fca80aa219f62e44b06ff9425daa73dd06eb21;hb=ec316c66d2678ffeddfca6c0be39d23eab55bd34;hpb=562cb4d37ba7667ac846fc3d426b152d21ef2c22 diff --git a/debian/cfg_kludge_flash.lua b/debian/cfg_kludge_flash.lua index 54fca80..69e03b0 100644 --- a/debian/cfg_kludge_flash.lua +++ b/debian/cfg_kludge_flash.lua @@ -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, }