diff --git a/awesome.c b/awesome.c index b847603c..9835a1f4 100644 --- a/awesome.c +++ b/awesome.c @@ -539,6 +539,7 @@ main(int argc, char **argv) /* scan existing windows */ scan(tree_c); + luaA_emit_startup(); xcb_flush(globalconf.connection); /* Setup the main context */ diff --git a/luaa.c b/luaa.c index 1a2aef78..bfd1b6b3 100644 --- a/luaa.c +++ b/luaa.c @@ -474,6 +474,7 @@ luaA_init(xdgHandle* xdg) signal_add(&global_signals, "systray::update"); signal_add(&global_signals, "wallpaper_changed"); signal_add(&global_signals, "refresh"); + signal_add(&global_signals, "startup"); signal_add(&global_signals, "exit"); } @@ -587,6 +588,13 @@ luaA_class_newindex_miss_property(lua_State *L, lua_object_t *obj) return 0; } +void +luaA_emit_startup() +{ + lua_State *L = globalconf_get_lua_State(); + signal_object_emit(L, &global_signals, "startup", 0); +} + void luaA_emit_refresh() { diff --git a/luaa.h b/luaa.h index 9576908b..b84f1558 100644 --- a/luaa.h +++ b/luaa.h @@ -206,6 +206,7 @@ int luaA_class_index_miss_property(lua_State *, lua_object_t *); int luaA_class_newindex_miss_property(lua_State *, lua_object_t *); int luaA_default_index(lua_State *); int luaA_default_newindex(lua_State *); +void luaA_emit_startup(void); void luaA_systray_invalidate(void);