From 01aa7e66e628c45c0f0e4a6efb4609cdda5bc95a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 6 Oct 2010 18:45:13 +0200 Subject: [PATCH] wibox.widget.background: Use draw_widget() Without draw_widget(), the input handling is broken. Signed-off-by: Uli Schlachter --- lib/wibox/widget/background.lua.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wibox/widget/background.lua.in b/lib/wibox/widget/background.lua.in index 5673fe23a..12fa9b1e8 100644 --- a/lib/wibox/widget/background.lua.in +++ b/lib/wibox/widget/background.lua.in @@ -7,7 +7,7 @@ local oocairo = require("oocairo") local base = require("wibox.widget.base") local color = require("gears.color") -local widget_base = require("wibox.widget.base") +local layout_base = require("wibox.layout.base") local setmetatable = setmetatable local pairs = pairs local type = type @@ -34,7 +34,7 @@ function draw(box, wibox, cr, width, height) cr:restore() - box.widget:draw(wibox, cr, width, height) + layout_base.draw_widget(wibox, cr, box.widget, 0, 0, width, height) end --- Fit this widget into the given area @@ -52,7 +52,7 @@ function set_widget(box, widget) box.widget:disconnect_signal("widget::updated", box._emit_updated) end if widget then - widget_base.check_widget(widget) + base.check_widget(widget) widget:connect_signal("widget::updated", box._emit_updated) end box.widget = widget