From b552000bd9b1a659023c25b8f7c318078be3497f Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Jun 2012 14:52:06 +0200 Subject: [PATCH] More fixes for the recent module() removal Signed-off-by: Uli Schlachter --- lib/awful/icccm.lua.in | 2 +- lib/awful/layout/suit/tile.lua.in | 2 +- lib/awful/remote.lua.in | 4 ++-- lib/naughty.lua.in | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/awful/icccm.lua.in b/lib/awful/icccm.lua.in index c7a22652..3035413e 100644 --- a/lib/awful/icccm.lua.in +++ b/lib/awful/icccm.lua.in @@ -102,7 +102,7 @@ local function apply_size_hints(c) -- Handle the size increment if hints.width_inc and hints.width_inc > 0 then - function apply_inc(size, inc, base) + local function apply_inc(size, inc, base) local i = size - base if i < 0 then i = 0 end -- Round size down to a multiple of inc, ignoring the base size diff --git a/lib/awful/layout/suit/tile.lua.in b/lib/awful/layout/suit/tile.lua.in index d70152e6..9e62e863 100644 --- a/lib/awful/layout/suit/tile.lua.in +++ b/lib/awful/layout/suit/tile.lua.in @@ -29,7 +29,7 @@ local function tile_group(cls, wa, orientation, fact, group) end -- make this more generic (not just width) - available = wa[width] - (group.coord - wa[x]) + local available = wa[width] - (group.coord - wa[x]) -- find our total values local total_fact = 0 diff --git a/lib/awful/remote.lua.in b/lib/awful/remote.lua.in index c4e1b8ed..ccc9ec20 100644 --- a/lib/awful/remote.lua.in +++ b/lib/awful/remote.lua.in @@ -22,8 +22,8 @@ if dbus then if data.member == "Eval" then local f, e = load(code) if f then - results = { f() } - retvals = {} + local results = { f() } + local retvals = {} for _, v in ipairs(results) do local t = type(v) if t == "boolean" then diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index b089cffc..9e0fceeb 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -503,7 +503,7 @@ end -- Notify if capi.dbus then capi.dbus.connect_signal("org.freedesktop.Notifications", function (data, appname, replaces_id, icon, title, text, actions, hints, expire) - args = { } + local args = { } if data.member == "Notify" then if text ~= "" then args.text = text