File: nextact.lua

package info (click to toggle)
notion 3%2B2012042300-1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 4,724 kB
  • sloc: ansic: 45,614; makefile: 544; sh: 409; perl: 113
file content (18 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- Go to first found region with activity flag set.

local function filteri(f, l)
    local res={}
    for _, v in ipairs(l) do
        if f(v) then
            table.insert(res, v)
        end
    end
    return res
end

function goto_nextact()
    local l=filteri(WRegion.is_activity, ioncore.clientwin_list())
    if l[1] then
        l[1]:goto()
    end
end