awful.client.shape: Fix for API change in gears.surface

A nil-value is no longer simply passed through, so this has to do some "special
things" to work properly.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-01-17 17:34:44 +01:00
parent a2c1106401
commit 0a21931ffc
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ shape.update = {}
-- @tparam string shape Either "bounding" or "clip"
function shape.get_transformed(c, shape)
local border = shape == "bounding" and c.border_width or 0
local shape = surface(c["client_shape_" .. shape])
local shape = surface.load_silently(c["client_shape_" .. shape], false)
if not shape then return end
-- Get information about various sizes on the client