Fixes https://github.com/awesomeWM/awesome/issues/337. Closes https://github.com/awesomeWM/awesome/pull/341.
Connecting to a signal weakly has the same effect as connecting to it strongly, but it allows the garbage collector to disconnect the signal in case nothing else references this function. Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-b: Julian Wollrath <jwollrath@web.de>