diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-24 22:09:34 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-24 22:09:34 -0500 |
commit | de2fa7938758ff83cabf06baf4c0ac7a230e78bf (patch) | |
tree | cf11c155d3c1e432b19f840556065d2b94e41773 /src/main.c | |
parent | 41ac253f743e464194587c3ecc0f2547c95d924d (diff) |
add more window functions and clean up window info access
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -12,11 +12,8 @@ int main(int argc, char** argv) if (!honey_setup(&L)) return 1; - lua_getglobal(L, "honey"); - lua_getfield(L, -1, "window"); - lua_getfield(L, -1, "internal"); + lua_rawgeti(L, LUA_REGISTRYINDEX, honey_window_info_ref); honey_window_information* info = lua_touserdata(L, -1); - lua_pop(L, 2); honey_window window = info->window; char* script; |