From 06716df05a27e5753f01196db544aa4fd41aff6c Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 18 Apr 2016 02:55:54 -0400 Subject: [PATCH] awful.rules: Apply border_width early --- lib/awful/rules.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/awful/rules.lua b/lib/awful/rules.lua index 32d4b7cf..c9945926 100644 --- a/lib/awful/rules.lua +++ b/lib/awful/rules.lua @@ -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)]