focus: Fix the shape for Awesome v4.1+

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

View File

@ -66,7 +66,11 @@ local function init()
widget = wibox.container.background
}
surface.apply_shape_bounding(wiboxes[v], r_shape)
if awesome.version >= "v4.1" then
wiboxes[v].shape = r_shape
else
surface.apply_shape_bounding(wiboxes[v], r_shape)
end
end
end