From 2e38c085697b4e16e20013d8f7cb3da89c853e8c Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 10 Mar 2013 11:11:43 +0100 Subject: [PATCH] wibox.wibox.systray: Allow multiple systrays This has to be removed because it breaks the fallback to the default config if the first config already managed to create a systray widget. This doesn't mean that it is suddenly possible to have the systray visible in more than one place, it just means that awesome will no longer complain about this. Signed-off-by: Uli Schlachter --- lib/wibox/widget/systray.lua.in | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/wibox/widget/systray.lua.in b/lib/wibox/widget/systray.lua.in index 325482d9..330d2734 100644 --- a/lib/wibox/widget/systray.lua.in +++ b/lib/wibox/widget/systray.lua.in @@ -15,7 +15,6 @@ local abs = math.abs --- wibox.widget.systray local systray = { mt = {} } -local created_systray = false local horizontal = true local base_size = nil @@ -62,11 +61,6 @@ end local function new() local ret = wbase.make_widget() - if created_systray then - error("More than one systray created!") - end - created_systray = true - ret.fit = systray.fit ret.draw = systray.draw ret.set_base_size = function(_, size) base_size = size end