Merge pull request #695 from psychon/fix-bugs-luacheck-found
Fix bugs luacheck found
This commit is contained in:
commit
796c2fba51
|
@ -19,6 +19,7 @@ local tag = require("awful.tag")
|
|||
-- @param orientation String indicating in which corner is the master window.
|
||||
-- Available values are : NE, NW, SW, SE
|
||||
local function do_corner(p, orientation)
|
||||
local t = p.tag or tag.selected(p.screen)
|
||||
local wa = p.workarea
|
||||
local cls = p.clients
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ local capi =
|
|||
{
|
||||
selection = selection
|
||||
}
|
||||
local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1)
|
||||
local keygrabber = require("awful.keygrabber")
|
||||
local util = require("awful.util")
|
||||
local beautiful = require("beautiful")
|
||||
|
|
|
@ -79,7 +79,7 @@ function tag.swap(tag1, tag2)
|
|||
local src2, src1 = tag.getscreen(tag2), tag.getscreen(tag1)
|
||||
tag.setscreen(src1, tag2)
|
||||
tag.move(idx1, tag2)
|
||||
tag.setscreen(scr2, tag1)
|
||||
tag.setscreen(src2, tag1)
|
||||
tag.move(idx2, tag1)
|
||||
end
|
||||
|
||||
|
|
|
@ -95,7 +95,8 @@ function common.list_update(w, buttons, label, data, objects)
|
|||
end
|
||||
bgb:set_bg(bg)
|
||||
if type(bg_image) == "function" then
|
||||
bg_image = bg_image(tb,o,m,objects,i)
|
||||
-- TODO: Why does this pass nil as an argument?
|
||||
bg_image = bg_image(tb,o,nil,objects,i)
|
||||
end
|
||||
bgb:set_bgimage(bg_image)
|
||||
if icon then
|
||||
|
|
|
@ -200,7 +200,7 @@ function taglist.new(screen, filter, buttons, style, update_function, base_widge
|
|||
capi.client.connect_signal("unmanage", uc)
|
||||
end
|
||||
w._do_taglist_update()
|
||||
local list = instances[s]
|
||||
local list = instances[screen]
|
||||
if not list then
|
||||
list = setmetatable({}, { __mode = "v" })
|
||||
instances[screen] = list
|
||||
|
|
|
@ -224,7 +224,7 @@ function tasklist.new(screen, filter, buttons, style, update_function, base_widg
|
|||
capi.client.connect_signal("untagged", u)
|
||||
capi.client.connect_signal("unmanage", function(c)
|
||||
u(c)
|
||||
for s, i in pairs(instances) do
|
||||
for _, i in pairs(instances) do
|
||||
for _, tlist in pairs(i) do
|
||||
tlist._unmanage(c)
|
||||
end
|
||||
|
|
|
@ -325,7 +325,7 @@ end
|
|||
function naughty.reset_timeout(notification, new_timeout)
|
||||
if notification.timer then notification.timer:stop() end
|
||||
|
||||
local timeout = timeout or notification.timeout
|
||||
local timeout = new_timeout or notification.timeout
|
||||
set_timeout(notification, timeout)
|
||||
notification.timeout = timeout
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ function mirror:layout(context, cr, width, height)
|
|||
m = m:translate(t.x, t.y)
|
||||
m = m:scale(s.x, s.y)
|
||||
|
||||
return base.place_widget_via_matrix(widget, m, width, height)
|
||||
return base.place_widget_via_matrix(self.widget, m, width, height)
|
||||
end
|
||||
|
||||
--- Fit this layout into the given area
|
||||
|
|
Loading…
Reference in New Issue