diff options
| author | Blista Kanjo | 2021-10-10 03:30:13 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2021-10-10 03:30:13 -0400 |
| commit | 34e67b25b988d2c479d1ec7e02f1ce7718c754b7 (patch) | |
| tree | bf0afa984c00fa4616abbcaeb01b49076588c5df /awesome | |
| parent | ae760735743700c2e71d1e118cf08e7edc4a025b (diff) | |
implemented garbage collection to avoid memory leaks
Diffstat (limited to 'awesome')
| -rw-r--r-- | awesome/rc.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua index d0ec162..c72e60e 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -592,6 +592,13 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n -- Gaps beautiful.useless_gap = 5 +-- Run garbage collector regularly to prevent memory leaks +gears.timer { + timeout = 30, + autostart = true, + callback = function() collectgarbage() end +} + -- Autostart |
