awful.rules: Apply border_width early

This commit is contained in:
Emmanuel Lepage Vallee 2016-04-18 02:55:54 -04:00
parent 89edc92110
commit 06716df05a
1 changed files with 7 additions and 0 deletions

View File

@ -261,6 +261,7 @@ rules.delayed_properties = {}
local force_ignore = {
titlebars_enabled=true, focus=true, screen=true, x=true,
y=true, width=true, height=true, geometry=true,placement=true,
border_width=true,
}
function rules.high_priority_properties.tag(c, value)
@ -372,6 +373,12 @@ function rules.execute(c, props, callbacks)
c:emit_signal("request::titlebars", "rules", {properties=props})
end
-- Border width will also cause geometry related properties to fail
if props.border_width then
c.border_width = type(props.border_width) == "function" and
props.border_width(c, props) or props.border_width
end
-- Before requesting a tag, make sure the screen is right
if props.screen then
c.screen = type(props.screen) == "function" and screen[props.screen(c,props)]