awesome/lib/awful/widget
Uli Schlachter da6012da3e Fix memory leak in the default config on screen removal
The default config had tables like mywibox and mywibox[s] was the wibox
that is visible on screen s. When a screen is removed, nothing cleans up
these tables and so the screen and the wibox could not be garbage
collected. The same applies to the layoutbox, taglist etc.

This commit removes the global mywibox table and instead saves it as a
property on the screen. This way, the screen is not explicitly
referenced and when it is removed, the screen, its wibox and all of its
widgets become unreachable and can be garbage collected.

This commit also updates the docs and the tests that referenced things
(mostly the wibox) via mywibox[s] to now use s.mywibox.

Fixes: https://github.com/awesomeWM/awesome/issues/1125
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-09-30 22:46:51 +02:00
..
button.lua doc: Fix the awful.widget.button documentation 2016-08-20 15:41:12 -04:00
common.lua widget.common: Add shape support 2016-09-26 01:20:56 -04:00
graph.lua graph: Move to wibox.widget 2016-05-30 17:51:19 -04:00
init.lua feat(awful: widgets): add 'watch' widget 2016-02-28 12:11:57 +01:00
keyboardlayout.lua minor: clarify mod-ctrl-shift-X comment; fix typo 2016-04-04 20:30:48 +02:00
launcher.lua Move util.spawn to a new module, add ability to spawn with properties 2015-09-29 18:05:56 -04:00
layoutbox.lua layoutbox: Revert 25f4f24791 2016-05-18 01:45:21 -04:00
progressbar.lua progressbar: Move to `wibox.widget` 2016-05-30 17:51:19 -04:00
prompt.lua Fix luacheck warnings in lib/awful/widget/ 2016-02-11 21:55:32 +01:00
taglist.lua doc: Document taglist theme variables 2016-09-26 01:20:56 -04:00
tasklist.lua doc: Document the tasklist variables. 2016-09-26 01:20:56 -04:00
textclock.lua textclock: Move to wibox.widget 2016-05-30 17:51:19 -04:00
watch.lua Fix memory leak in the default config on screen removal 2016-09-30 22:46:51 +02:00