awful.rules: Apply border_width early
This commit is contained in:
parent
89edc92110
commit
06716df05a
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue