systray: Use table.crush

This commit is contained in:
Emmanuel Lepage Vallee 2016-05-27 23:22:46 -04:00
parent 72c437a7c8
commit 756862dff6
1 changed files with 2 additions and 3 deletions

View File

@ -7,6 +7,7 @@
local wbase = require("wibox.widget.base")
local beautiful = require("beautiful")
local util = require("awful.util")
local capi = {
awesome = awesome,
screen = screen
@ -155,9 +156,7 @@ end
local function new(revers)
local ret = wbase.make_widget()
for k, v in pairs(systray) do
ret[k] = v
end
util.table.crush(ret, systray, true)
if revers then
ret:set_reverse(true)