fix linter warnings
This commit is contained in:
parent
7257802b64
commit
5415a2ab93
10
init.lua
10
init.lua
|
@ -8,7 +8,7 @@ local dpi = theme.xresources.apply_dpi
|
||||||
|
|
||||||
local module = {}
|
local module = {}
|
||||||
|
|
||||||
local client, screen, mouse = client, screen, mouse
|
local client, screen, mouse, awesome = client, screen, mouse, awesome
|
||||||
|
|
||||||
local instances = {}
|
local instances = {}
|
||||||
|
|
||||||
|
@ -552,9 +552,9 @@ local function new(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
for s in screen do
|
for s in screen do
|
||||||
for pos, buttons in pairs(hot_corners) do
|
for pos, btns in pairs(hot_corners) do
|
||||||
add_hot_corner({
|
add_hot_corner({
|
||||||
buttons = buttons,
|
buttons = btns,
|
||||||
screen = s,
|
screen = s,
|
||||||
position = pos,
|
position = pos,
|
||||||
color = hot_corners_color,
|
color = hot_corners_color,
|
||||||
|
@ -659,8 +659,6 @@ local function new(config)
|
||||||
end
|
end
|
||||||
|
|
||||||
local smart_border_titlebars = function(c)
|
local smart_border_titlebars = function(c)
|
||||||
local button_widgets = {}
|
|
||||||
|
|
||||||
local border_bg = wibox.widget.base.make_widget_declarative({
|
local border_bg = wibox.widget.base.make_widget_declarative({
|
||||||
{ widget = wibox.container.margin },
|
{ widget = wibox.container.margin },
|
||||||
id = "border_bg",
|
id = "border_bg",
|
||||||
|
@ -837,8 +835,6 @@ local function new(config)
|
||||||
|
|
||||||
table.insert(list_of_buttons, button_widget)
|
table.insert(list_of_buttons, button_widget)
|
||||||
|
|
||||||
button_widgets[b.name] = button_widget
|
|
||||||
|
|
||||||
local update = function()
|
local update = function()
|
||||||
if client.focus == c then
|
if client.focus == c then
|
||||||
button_widget.bg = stealth and color_focus or b.color_focus
|
button_widget.bg = stealth and color_focus or b.color_focus
|
||||||
|
|
Loading…
Reference in New Issue