From e1d4f9ae8a03b10d7eac413a83717c1d7f114146 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 26 Feb 2019 02:38:11 +0100 Subject: [PATCH] shifty: use perfect match for role Otherwise, we would match "browser-window" --- lib/shifty.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shifty.lua b/lib/shifty.lua index 7f21602..3bbf48d 100644 --- a/lib/shifty.lua +++ b/lib/shifty.lua @@ -535,7 +535,7 @@ function match(c, startup) -- match only role if not matched and role and a.match.role then for k, w in ipairs(a.match.role) do - matched = role:find(w) + matched = (role == w) if matched then break end