On Thu, Sep 05, 2013 at 10:45:34AM +0200, Andrea Scarpino wrote:
> Hi all,
> in my awesome setup a workaround (?) is needed to always start a client in a 
> specific tag in the *current* screen.
> 
> I tried with the following rule, but it doesn't its job:
> { rule = { class = "Chromium" }, properties = { tag = tags[mouse.screen][2] } 
> }
> 
> Instead this one works:
> { rule = { class = "Chromium" }, callback = function(c) 
> awful.client.movetotag(tags[mouse.screen][2], c) end }
> 
> Is this a bug or I am wrong?

The first 'mouse.screen' evaluates when the script is executed, not the
client is matched.

The latter one delays this evaluation until the rule is matched and the
anonymous function is called.

-- 
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
-- 
A: Because it obfuscates the reading.
Q: Why is top posting so bad?

-- 
To unsubscribe, send mail to [email protected].

Reply via email to