From ab6cd898c13fb4b49efcad49931fc48d0268cb42 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 26 Aug 2009 20:28:43 +0200 Subject: [PATCH] awful.widget: Don't use a resizable imagebox awful.widget.graph and progressbar both create an imagebox. The default is resize = true which means the image is scaled up inside the wibox if :set_height() is used. Setting widget.resize = false avoids this. Signed-off-by: Uli Schlachter Signed-off-by: Julien Danjou --- lib/awful/widget/graph.lua.in | 1 + lib/awful/widget/progressbar.lua.in | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/awful/widget/graph.lua.in b/lib/awful/widget/graph.lua.in index b4997ca9..e0e48a28 100644 --- a/lib/awful/widget/graph.lua.in +++ b/lib/awful/widget/graph.lua.in @@ -216,6 +216,7 @@ function new(args) local graph = {} graph.widget = capi.widget(args) + graph.widget.resize = false 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 0d2a2ef3..0676126a 100644 --- a/lib/awful/widget/progressbar.lua.in +++ b/lib/awful/widget/progressbar.lua.in @@ -169,6 +169,7 @@ function new(args) local pbar = {} pbar.widget = capi.widget(args) + pbar.widget.resize = false data[pbar] = { width = width, height = height, value = 0 }