From 5fc78b6dce610ddffec30f9feee1480e50c30bd0 Mon Sep 17 00:00:00 2001 From: BZ Date: Tue, 2 Feb 2021 17:37:17 +0100 Subject: [PATCH] fix clients missing WM_CLASS property throwing errors --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fa65843..c628c7e 100644 --- a/init.lua +++ b/init.lua @@ -188,8 +188,9 @@ function module.menu_client(custom_menu, c) end end + local class = c.class or "" for regex, entries in pairs(custom_menu) do - if string.find(c.class, regex) then + if string.find(class, regex) then for _, e in ipairs(entries) do local menu_entry = generate_menu_entry(e) if menu_entry then