check c.instance for nil

This commit is contained in:
Kolan Sh 2022-02-03 23:31:06 +03:00
parent 2471492879
commit 5bc940b2ff
1 changed files with 1 additions and 1 deletions

2
rc.lua
View File

@ -1063,7 +1063,7 @@ client.connect_signal("manage", function (c)
-- Prevent clients from being unreachable after screen count changes.
awful.placement.no_offscreen(c)
end
if string.find(c.instance, "QuakeConsole") then update_quake_console(c) end
if c.instance ~= nil and string.find(c.instance, "QuakeConsole") then update_quake_console(c) end
end)
-- Add a titlebar if titlebars_enabled is set to true in the rules.