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:
parent
a2c1106401
commit
0a21931ffc
|
@ -23,7 +23,7 @@ shape.update = {}
|
||||||
-- @tparam string shape Either "bounding" or "clip"
|
-- @tparam string shape Either "bounding" or "clip"
|
||||||
function shape.get_transformed(c, shape)
|
function shape.get_transformed(c, shape)
|
||||||
local border = shape == "bounding" and c.border_width or 0
|
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
|
if not shape then return end
|
||||||
|
|
||||||
-- Get information about various sizes on the client
|
-- Get information about various sizes on the client
|
||||||
|
|
Loading…
Reference in New Issue