diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-28 09:30:13 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-28 09:30:13 +0100 |
| commit | 431da7c3e4e193feba1ef4b634c4911790fd6961 (patch) | |
| tree | 77d1253923c46ad640d3841e15b34737a92fe914 | |
| parent | 74085e92c095d0bf4b98e262cc07ccf9b7dfff3b (diff) | |
| parent | ff4c5d4d37e7e9dbd5b39904e9be19fa41c3ec0d (diff) | |
| download | vis-431da7c3e4e193feba1ef4b634c4911790fd6961.tar.gz vis-431da7c3e4e193feba1ef4b634c4911790fd6961.tar.xz | |
Merge branch 'master' of https://github.com/arames/vis
| -rw-r--r-- | vis-lua.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1169,6 +1169,11 @@ static int vis_newindex(lua_State *L) { vis_count_set(vis, count); return 1; } + + if (strcmp(key, "win") == 0) { + vis_window_focus(obj_ref_check(L, 3, VIS_LUA_TYPE_WINDOW)); + return 0; + } } return newindex_common(L); } |
