client: Check if `border_widht` is `nil` before setting it.

Fix #3026
This commit is contained in:
Emmanuel Lepage Vallee 2020-03-07 19:31:58 -05:00
parent b6ce95cd15
commit 92d6fcda92
1 changed files with 4 additions and 2 deletions

View File

@ -1478,9 +1478,11 @@ for _, prop in ipairs { "border_width", "border_color", "opacity" } do
return self["_"..prop]
end
client.object["set_"..prop] = function(self, value)
if value ~= nil then
self._private["_user_"..prop] = true
self["_"..prop] = value
end
end
end
--- Activate (focus) a client.