awful.rules: Apply size_hints_honor early
There is a property race with width, height and geometry
This commit is contained in:
parent
8875b66d2e
commit
a4f1b760bd
|
@ -261,7 +261,7 @@ rules.delayed_properties = {}
|
||||||
local force_ignore = {
|
local force_ignore = {
|
||||||
titlebars_enabled=true, focus=true, screen=true, x=true,
|
titlebars_enabled=true, focus=true, screen=true, x=true,
|
||||||
y=true, width=true, height=true, geometry=true,placement=true,
|
y=true, width=true, height=true, geometry=true,placement=true,
|
||||||
border_width=true,floating=true
|
border_width=true,floating=true,size_hints_honor=true
|
||||||
}
|
}
|
||||||
|
|
||||||
function rules.high_priority_properties.tag(c, value)
|
function rules.high_priority_properties.tag(c, value)
|
||||||
|
@ -379,6 +379,13 @@ function rules.execute(c, props, callbacks)
|
||||||
props.border_width(c, props) or props.border_width
|
props.border_width(c, props) or props.border_width
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Size hints will be re-applied when setting width/height unless it is
|
||||||
|
-- disabled first
|
||||||
|
if props.size_hints_honor ~= nil then
|
||||||
|
c.size_hints_honor = type(props.size_hints_honor) == "function" and props.size_hints_honor(c,props)
|
||||||
|
or props.size_hints_honor
|
||||||
|
end
|
||||||
|
|
||||||
-- Geometry will only work if floating is true, otherwise the "saved"
|
-- Geometry will only work if floating is true, otherwise the "saved"
|
||||||
-- geometry will be restored.
|
-- geometry will be restored.
|
||||||
if props.floating then
|
if props.floating then
|
||||||
|
|
Loading…
Reference in New Issue