File: detach.lua

package info (click to toggle)
ion2 20040729-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,828 kB
  • ctags: 3,466
  • sloc: ansic: 28,432; makefile: 473; sh: 230; perl: 16
file content (11 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
-- Put the function make_current_clientwin_fn(detach_topmost_transient)
-- in e.g. ionframe_bindings to use this.

function detach_topmost_transient(cwin)
    local l=cwin:managed_list()
    local trs=l[table.getn(l)]
    if trs then
        cwin:manager():attach(trs)
    end
end