More fixes for the recent module() removal
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
1cef64a9c8
commit
b552000bd9
|
@ -102,7 +102,7 @@ local function apply_size_hints(c)
|
||||||
|
|
||||||
-- Handle the size increment
|
-- Handle the size increment
|
||||||
if hints.width_inc and hints.width_inc > 0 then
|
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
|
local i = size - base
|
||||||
if i < 0 then i = 0 end
|
if i < 0 then i = 0 end
|
||||||
-- Round size down to a multiple of inc, ignoring the base size
|
-- Round size down to a multiple of inc, ignoring the base size
|
||||||
|
|
|
@ -29,7 +29,7 @@ local function tile_group(cls, wa, orientation, fact, group)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- make this more generic (not just width)
|
-- 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
|
-- find our total values
|
||||||
local total_fact = 0
|
local total_fact = 0
|
||||||
|
|
|
@ -22,8 +22,8 @@ if dbus then
|
||||||
if data.member == "Eval" then
|
if data.member == "Eval" then
|
||||||
local f, e = load(code)
|
local f, e = load(code)
|
||||||
if f then
|
if f then
|
||||||
results = { f() }
|
local results = { f() }
|
||||||
retvals = {}
|
local retvals = {}
|
||||||
for _, v in ipairs(results) do
|
for _, v in ipairs(results) do
|
||||||
local t = type(v)
|
local t = type(v)
|
||||||
if t == "boolean" then
|
if t == "boolean" then
|
||||||
|
|
|
@ -503,7 +503,7 @@ end
|
||||||
-- Notify
|
-- Notify
|
||||||
if capi.dbus then
|
if capi.dbus then
|
||||||
capi.dbus.connect_signal("org.freedesktop.Notifications", function (data, appname, replaces_id, icon, title, text, actions, hints, expire)
|
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 data.member == "Notify" then
|
||||||
if text ~= "" then
|
if text ~= "" then
|
||||||
args.text = text
|
args.text = text
|
||||||
|
|
Loading…
Reference in New Issue