Merge pull request #915 from Elv13/undo_layoutbox_fail-fix

layoutbox: Revert 25f4f24791
This commit is contained in:
Emmanuel Lepage Vallée 2016-05-18 14:16:49 -04:00
commit a41fb9a661
2 changed files with 3 additions and 2 deletions

View File

@ -56,10 +56,10 @@ function layoutbox.new(screen)
local w = boxes[screen] local w = boxes[screen]
if not w then if not w then
w = imagebox() w = imagebox()
w._layoutbox_tooltip = tooltip({ objects = {w}, delay_show = 1 }) w._layoutbox_tooltip = tooltip {objects = {w}, delay_show = 1}
update(w, screen) update(w, screen)
boxes[screen] = setmetatable({}, {__index = w, __newindex = w}) boxes[screen] = w
end end
return w return w

View File

@ -14,6 +14,7 @@ end
-- Make the layoutbox in the default config GC'able -- Make the layoutbox in the default config GC'able
-- luacheck: globals mywibox mylayoutbox -- luacheck: globals mywibox mylayoutbox
for s in screen do for s in screen do
mywibox[s]:set_widget(wibox.widget.textbox())
mywibox[s].visible = false mywibox[s].visible = false
end end
mywibox = nil mywibox = nil