signals: don't apply transparency to Firefox PIP window

This commit is contained in:
Vincent Bernat 2020-01-11 23:25:42 +01:00
parent 52adad2eab
commit 26a3d833b8

View file

@ -84,7 +84,8 @@ client.add_signal("focus", function(c)
end)
client.add_signal("unfocus", function(c)
c.border_color = beautiful.border_normal
if not c.fullscreen then
if (not c.fullscreen and
not awful.rules.match_any(c, { name = { "Picture-in-Picture" } })) then
c.opacity = 0.85
end
end)