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,10 +1478,12 @@ for _, prop in ipairs { "border_width", "border_color", "opacity" } do
return self["_"..prop] return self["_"..prop]
end end
client.object["set_"..prop] = function(self, value) client.object["set_"..prop] = function(self, value)
if value ~= nil then
self._private["_user_"..prop] = true self._private["_user_"..prop] = true
self["_"..prop] = value self["_"..prop] = value
end end
end end
end
--- Activate (focus) a client. --- Activate (focus) a client.
-- --