mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-13 11:44:21 +02:00
flash: correct how fullscreen PPAPI Flash is detected by shifty
`config.apps` can now use a function to do detection.
This commit is contained in:
parent
60908e329d
commit
9adf371e95
3 changed files with 14 additions and 1 deletions
|
@ -497,6 +497,11 @@ function match(c, startup)
|
|||
for i, a in ipairs(config.apps) do
|
||||
if a.match then
|
||||
local matched = false
|
||||
-- match function
|
||||
if not matched and a.match.check then
|
||||
matched = a.match.check(c)
|
||||
end
|
||||
|
||||
-- match only class
|
||||
if not matched and cls and a.match.class then
|
||||
for k, w in ipairs(a.match.class) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue