layoutbox: Revert 25f4f24791
Apparently, there is such thing as not leaking enough... Also try to clear the widgets from mywibox. This seem to help. Time will tell. Fixes #914, unfixes #808
This commit is contained in:
parent
32eeaa9513
commit
bb5ee50de9
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue