diff options
| author | Alexandre Rames <alexandre.rames@uop.re> | 2017-02-27 21:29:35 -0800 |
|---|---|---|
| committer | Alexandre Rames <alexandre.rames@uop.re> | 2017-02-27 21:29:35 -0800 |
| commit | ff4c5d4d37e7e9dbd5b39904e9be19fa41c3ec0d (patch) | |
| tree | 0547fe67648554abe6b23500f1e13cd27af7c14e /vis-lua.c | |
| parent | 661dbb2c9eb4249d1083b838c432e183a8c633c3 (diff) | |
| download | vis-ff4c5d4d37e7e9dbd5b39904e9be19fa41c3ec0d.tar.gz vis-ff4c5d4d37e7e9dbd5b39904e9be19fa41c3ec0d.tar.xz | |
vis-lua: make vis:win assignable
Diffstat (limited to 'vis-lua.c')
| -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); } |
