widget: Enable properties by default for API level 5.
This commit is contained in:
parent
870cf261fb
commit
c220bcce87
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue