awesome/lib
Uli Schlachter e50fa84f61 gears.protected_call: Automatically detect xpcall features
In Lua 5.1, xpcall() has exactly two arguments: The function to call and
the error handler. Everywhere else, xpcall() passes extra arguments on
to the function to call. This includes LuaJIT, however since LuaJIT sets
_VERSION to "Lua 5.1", so far gears.protected_call used the workaround
for Lua 5.1 here.

This commit switches gears.protected_call to actually test for this
feature instead of just guessing based on _VERSION. Thus, this now also
uses the better code with LuaJIT.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-02-15 09:25:06 +01:00
..
awful awful.rules: Fix shape function not being set as client property 2019-01-30 07:44:00 +01:00
beautiful beautiful.init: Fix return values and improve doco. fixes: #2588 #2592 2019-01-25 22:56:41 +11:00
gears gears.protected_call: Automatically detect xpcall features 2019-02-15 09:25:06 +01:00
menubar Aligning 'regex' with other PR / Minor readability improvements 2019-02-09 19:21:46 +11:00
naughty dbus: fix nil notifications (#2180) 2018-10-07 16:09:12 +02:00
wibox background container: Actually set the foreground color 2019-02-01 15:28:29 +01:00
beautiful.lua Add pointless naughty.lua and beautiful.lua files (#1259) 2016-12-08 23:53:50 +01:00
naughty.lua Add pointless naughty.lua and beautiful.lua files (#1259) 2016-12-08 23:53:50 +01:00