awful.rules: set focus as last property

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-25 11:40:35 +02:00
parent 0d21df8168
commit 8ec1f4f49c
1 changed files with 5 additions and 2 deletions

View File

@ -70,8 +70,6 @@ function apply(c)
for property, value in pairs(entry.properties) do
if property == "floating" then
aclient.floating.set(c, value)
elseif property == "focus" then
client.focus = c
elseif property == "tag" then
aclient.movetotag(value, c)
elseif type(c[property]) == "function" then
@ -80,6 +78,11 @@ function apply(c)
c[property] = value
end
end
-- Do this at last so we do not erase things done by the focus
-- signal.
if entry.properties.focus then
client.focus = c
end
end
end
end