From 79e86d409ae7a996f94d19d404d363ae00f813e1 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 11 Oct 2015 12:42:50 +0200 Subject: [PATCH] Fix awful.spawn.spawn The C code wants a boolean as its argument, so we should give it a boolean. Signed-off-by: Uli Schlachter --- lib/awful/spawn.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/awful/spawn.lua b/lib/awful/spawn.lua index 24b2fad5..eba71805 100644 --- a/lib/awful/spawn.lua +++ b/lib/awful/spawn.lua @@ -47,6 +47,7 @@ end function spawn.spawn(cmd, sn_rules, callback) if cmd and cmd ~= "" then local enable_sn = (sn_rules ~= false or callback) + enable_sn = not not enable_sn -- Force into a boolean if not sn_rules and callback then sn_rules = {callback=callback} elseif callback then