From 6da20bb3014634af67370c731ace37110a2a5b55 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 27 Jan 2017 19:27:19 -0500 Subject: [PATCH] rules.placement: Add properties to honor padding and workarea --- lib/awful/rules.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/rules.lua b/lib/awful/rules.lua index c4ce649a..85b5f80c 100644 --- a/lib/awful/rules.lua +++ b/lib/awful/rules.lua @@ -353,7 +353,7 @@ function rules.high_priority_properties.new_tag(c, value, props) return t end -function rules.extra_properties.placement(c, value) +function rules.extra_properties.placement(c, value, props) -- Avoid problems if awesome.startup and (c.size_hints.user_position or c.size_hints.program_position) then @@ -363,8 +363,8 @@ function rules.extra_properties.placement(c, value) local ty = type(value) local args = { - honor_workarea = true, - honor_padding = true + honor_workarea = props.honor_workarea ~= false, + honor_padding = props.honor_padding ~= false } if ty == "function" or (ty == "table" and