From 92d6fcda9248c66fad245eddf37468d2189c2749 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 7 Mar 2020 19:31:58 -0500 Subject: [PATCH] client: Check if `border_widht` is `nil` before setting it. Fix #3026 --- lib/awful/client.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/awful/client.lua b/lib/awful/client.lua index 631cd9798..559bfa937 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -1478,8 +1478,10 @@ for _, prop in ipairs { "border_width", "border_color", "opacity" } do return self["_"..prop] end client.object["set_"..prop] = function(self, value) - self._private["_user_"..prop] = true - self["_"..prop] = value + if value ~= nil then + self._private["_user_"..prop] = true + self["_"..prop] = value + end end end