On Sun, 27 Jan 2008 14:35:47 +0000, Ben Hutchings wrote:

> 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
> )

Cool!

If I set the timer to 100 the hack works on my desktop, on my laptop
it only works every other time; increasing to 200 helps.

Cheers,
gregor

-- 
 .''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
 : :' :  debian: the universal operating system - http://www.debian.org/
 `. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
   `-    NP: Beatles

Attachment: signature.asc
Description: Digital signature

Reply via email to