From 5bc940b2ff213db3d8b5ac8cf0605e42a90cb12a Mon Sep 17 00:00:00 2001 From: backbone Date: Thu, 3 Feb 2022 23:31:06 +0300 Subject: [PATCH] check c.instance for nil --- rc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.lua b/rc.lua index d2cb20a..dec7b3a 100644 --- a/rc.lua +++ b/rc.lua @@ -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.