Fix c.instance = nil

This commit is contained in:
Kolan Sh 2022-02-15 14:43:05 +03:00
parent 5bc940b2ff
commit 02a6df886d
1 changed files with 6 additions and 2 deletions

8
rc.lua
View File

@ -323,7 +323,11 @@ local function update_quake_console_real(cli)
end end
local function update_quake_console(cli) local function update_quake_console(cli)
if cli == nil then if cli == nil then
for c in awful.client.iterate(function (c) return string.find(c.instance, "QuakeConsole") end) for c in awful.client.iterate(
function (c)
if c.instance == nil then return nil end
return string.find(c.instance, "QuakeConsole")
end)
do do
update_quake_console_real(c) update_quake_console_real(c)
end end
@ -1143,7 +1147,7 @@ client.connect_signal("property::maximized", function(c)
c.border_width = 0 c.border_width = 0
else else
if c.floating then if c.floating then
if not string.find(c.instance, "QuakeConsole") then if c.instance == nil or not string.find(c.instance, "QuakeConsole") then
awful.titlebar.show(c) awful.titlebar.show(c)
end end
c.border_width = 2 c.border_width = 2