At 1236796288 time_t, Nikolai Prokoschenko wrote:
> I'm taking my first steps in awesome as my primary working environment 
> and now I have a first target: I would like to make sure some clients 
> don't get a focus upon start. Maybe even all clients, I don't know yet.
> 
> What I've came up with so far is that I need a manage hook, which then 
> checks the name of the client and then.... this is a problem. I don't 
> know what it should do -- probably lookup currently focused client and 
> make sure it's still focused, but I don't know anything about the order 
> in which hooks are run and thus maybe the new client would steal focus 
> anyway.
> 
> Is this possible and am I going into the right direction?

Sure.
The code which gives focus to new client in is the default manage hook:
     client.focus = c
So just do do this line of code if your client's matching something
(title, class, etc).

Therefore it won't steal your focus.

Cheers,
-- 
Julien Danjou
// ᐰ <[email protected]>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// I'm no superman.

Attachment: signature.asc
Description: Digital signature

Reply via email to