awful.rules: set focus as last property
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0d21df8168
commit
8ec1f4f49c
|
@ -70,8 +70,6 @@ function apply(c)
|
||||||
for property, value in pairs(entry.properties) do
|
for property, value in pairs(entry.properties) do
|
||||||
if property == "floating" then
|
if property == "floating" then
|
||||||
aclient.floating.set(c, value)
|
aclient.floating.set(c, value)
|
||||||
elseif property == "focus" then
|
|
||||||
client.focus = c
|
|
||||||
elseif property == "tag" then
|
elseif property == "tag" then
|
||||||
aclient.movetotag(value, c)
|
aclient.movetotag(value, c)
|
||||||
elseif type(c[property]) == "function" then
|
elseif type(c[property]) == "function" then
|
||||||
|
@ -80,6 +78,11 @@ function apply(c)
|
||||||
c[property] = value
|
c[property] = value
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue