Merge pull request #915 from Elv13/undo_layoutbox_fail-fix
layoutbox: Revert 25f4f24791
This commit is contained in:
commit
a41fb9a661
|
@ -56,10 +56,10 @@ function layoutbox.new(screen)
|
|||
local w = boxes[screen]
|
||||
if not w then
|
||||
w = imagebox()
|
||||
w._layoutbox_tooltip = tooltip({ objects = {w}, delay_show = 1 })
|
||||
w._layoutbox_tooltip = tooltip {objects = {w}, delay_show = 1}
|
||||
|
||||
update(w, screen)
|
||||
boxes[screen] = setmetatable({}, {__index = w, __newindex = w})
|
||||
boxes[screen] = w
|
||||
end
|
||||
|
||||
return w
|
||||
|
|
|
@ -14,6 +14,7 @@ end
|
|||
-- Make the layoutbox in the default config GC'able
|
||||
-- luacheck: globals mywibox mylayoutbox
|
||||
for s in screen do
|
||||
mywibox[s]:set_widget(wibox.widget.textbox())
|
||||
mywibox[s].visible = false
|
||||
end
|
||||
mywibox = nil
|
||||
|
|
Loading…
Reference in New Issue