resize: Fix the shape for Awesome v4.1+

This commit is contained in:
Emmanuel Lepage-Vallee 2017-05-28 22:24:43 -04:00
parent 7f2572a79f
commit 1b126be232
1 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,11 @@ local function create_indicators()
widget = wibox.container.background
}
surface.apply_shape_bounding(w, s)
if awesome.version >= "v4.1" then
w.shape = s
else
surface.apply_shape_bounding(w, s)
end
ret[v] = w
end