widget: Enable properties by default for API level 5.

This commit is contained in:
Emmanuel Lepage Vallee 2020-02-29 18:56:49 -05:00
parent 870cf261fb
commit c220bcce87
1 changed files with 8 additions and 1 deletions

View File

@ -684,8 +684,15 @@ end
-- @constructorfct wibox.widget.base.make_widget -- @constructorfct wibox.widget.base.make_widget
function base.make_widget(proxy, widget_name, args) function base.make_widget(proxy, widget_name, args)
args = args or {} args = args or {}
local prop_default = args.enable_properties ~= false
if awesome.api_level < 5 then
prop_default = args.enable_properties
end
local ret = object { local ret = object {
enable_properties = args.enable_properties, enable_properties = prop_default,
class = args.class, class = args.class,
} }