diff --git a/lib/awful/widget/graph.lua.in b/lib/awful/widget/graph.lua.in index 9a5e2cf2..a65647df 100644 --- a/lib/awful/widget/graph.lua.in +++ b/lib/awful/widget/graph.lua.in @@ -217,6 +217,7 @@ function new(args) local graph = {} graph.widget = capi.widget(args) graph.widget.resize = false + graph[1] = graph.widget data[graph] = { width = width, height = height, values = {}, max_value = 1 } diff --git a/lib/awful/widget/progressbar.lua.in b/lib/awful/widget/progressbar.lua.in index 0676126a..c12e7b9d 100644 --- a/lib/awful/widget/progressbar.lua.in +++ b/lib/awful/widget/progressbar.lua.in @@ -170,6 +170,7 @@ function new(args) pbar.widget = capi.widget(args) pbar.widget.resize = false + pbar[1] = pbar.widget data[pbar] = { width = width, height = height, value = 0 } diff --git a/lib/awful/widget/prompt.lua.in b/lib/awful/widget/prompt.lua.in index 0d6be422..2ae7eb60 100644 --- a/lib/awful/widget/prompt.lua.in +++ b/lib/awful/widget/prompt.lua.in @@ -34,6 +34,7 @@ function new(args) args.type = "textbox" promptbox.widget = capi.widget(args) promptbox.widget.ellipsize = "start" + promptbox[1] = promptbox.widget promptbox.run = run promptbox.prompt = args.prompt or "Run: " promptbox.layout = args.layout or layout.horizontal.leftright