shifty: use perfect match for role

Otherwise, we would match "browser-window"
This commit is contained in:
Vincent Bernat 2019-02-26 02:38:11 +01:00
parent d305e9259d
commit e1d4f9ae8a

View file

@ -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