rules.placement: Add properties to honor padding and workarea
This commit is contained in:
parent
5f693ead30
commit
6da20bb301
|
@ -353,7 +353,7 @@ function rules.high_priority_properties.new_tag(c, value, props)
|
||||||
return t
|
return t
|
||||||
end
|
end
|
||||||
|
|
||||||
function rules.extra_properties.placement(c, value)
|
function rules.extra_properties.placement(c, value, props)
|
||||||
-- Avoid problems
|
-- Avoid problems
|
||||||
if awesome.startup and
|
if awesome.startup and
|
||||||
(c.size_hints.user_position or c.size_hints.program_position) then
|
(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 ty = type(value)
|
||||||
|
|
||||||
local args = {
|
local args = {
|
||||||
honor_workarea = true,
|
honor_workarea = props.honor_workarea ~= false,
|
||||||
honor_padding = true
|
honor_padding = props.honor_padding ~= false
|
||||||
}
|
}
|
||||||
|
|
||||||
if ty == "function" or (ty == "table" and
|
if ty == "function" or (ty == "table" and
|
||||||
|
|
Loading…
Reference in New Issue