Fix an invalid index in awful.rules

A rule like { focus = true } would cause debug::index::miss and
debug::newindex::miss to be emitted.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-08-26 17:48:00 +02:00
parent e0774377ca
commit f89252962e
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ function apply(c)
local geo = c:geometry(); local geo = c:geometry();
geo[property] = value geo[property] = value
c:geometry(geo); c:geometry(geo);
elseif property == "focus" then
-- This will be handled below
elseif type(c[property]) == "function" then elseif type(c[property]) == "function" then
c[property](c, value) c[property](c, value)
else else