From 62b0a9d8f17bb0a78eae712bde17d028b33ea0e0 Mon Sep 17 00:00:00 2001 From: Cedric GESTES Date: Mon, 7 Sep 2009 17:18:21 +0200 Subject: [PATCH] rules: define geometry properties Signed-off-by: Cedric GESTES Signed-off-by: Julien Danjou --- lib/awful/rules.lua.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/awful/rules.lua.in b/lib/awful/rules.lua.in index 5fa86bcd1..8b6151f57 100644 --- a/lib/awful/rules.lua.in +++ b/lib/awful/rules.lua.in @@ -91,6 +91,11 @@ function apply(c) elseif property == "switchtotag" and value and entry.properties["tag"] then atag.viewonly(entry.properties["tag"]) + elseif property == "height" or property == "width" or + property == "x" or property == "y" then + local geo = c:geometry(); + geo[property] = value + c:geometry(geo); elseif type(c[property]) == "function" then c[property](c, value) else