Fix wibox.container.scroll's property magic

Creating a widget already sets a metatable (at least these days).
However, wibox.container.scroll overwrote this metatable with its own
metatable. This commit removes this overwrite.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-02-25 16:42:27 +01:00
parent 17fe135a9f
commit 3d12ba3b65
1 changed files with 2 additions and 2 deletions

View File

@ -8,11 +8,11 @@ local cache = require("gears.cache")
local timer = require("gears.timer")
local hierarchy = require("wibox.hierarchy")
local base = require("wibox.widget.base")
local util = require("awful.util")
local lgi = require("lgi")
local GLib = lgi.GLib
local scroll = {}
local scroll_mt = { __index = scroll }
local _need_scroll_redraw
-- "Strip" a context so that we can use it for our own drawing
@ -380,7 +380,7 @@ local function get_layout(dir, widget, fps, speed, extra_space, expand, max_size
ret._private.timer = GLib.Timer()
ret._private.scroll_timer = nil
setmetatable(ret, scroll_mt)
util.table.crush(ret, scroll, true)
ret:set_direction(dir)
ret:set_widget(widget)