1 -- Flash player opens full-screen windows from Firefox with size
2 -- request 200x200. It closes them if they lose focus, but also if
3 -- they get focus too quickly. Therefore set focus 200 ms after
4 -- such a window is mapped (this may need to be adjusted on slower
7 _NET_WM_STATE = ioncore.x_intern_atom('_NET_WM_STATE', false)
8 _NET_WM_STATE_FULLSCREEN = ioncore.x_intern_atom('_NET_WM_STATE_FULLSCREEN',
11 function is_fullscreen(cwin)
12 local state = ioncore.x_get_window_property(cwin:xid(), _NET_WM_STATE, 4,
15 for k, v in pairs(state) do
16 if v == _NET_WM_STATE_FULLSCREEN then
25 class = 'Firefox-bin',
26 match = function(prop, cwin, id)
27 local geom = cwin:geom()
28 return is_fullscreen(cwin) and geom.w == 200 and geom.h == 200
31 flash_fullscreen = true,
34 ioncore.get_hook('clientwin_do_manage_alt'):add(
36 local winprop = ioncore.getwinprop(cwin)
37 if winprop and winprop.flash_fullscreen then
38 local timer = ioncore.create_timer()
39 timer:set(200, function() cwin:goto() end)