diff --git a/event.h b/event.h index 66b25f63..517f3bca 100644 --- a/event.h +++ b/event.h @@ -24,9 +24,13 @@ #include "objects/client.h" +/* luaa.c */ +void luaA_emit_refresh(void); + static inline int awesome_refresh(void) { + luaA_emit_refresh(); banning_refresh(); stack_refresh(); client_focus_refresh(); diff --git a/luaa.c b/luaa.c index 75cd6a4a..fe52c508 100644 --- a/luaa.c +++ b/luaa.c @@ -628,6 +628,7 @@ luaA_init(xdgHandle* xdg) signal_add(&global_signals, "debug::index::miss"); signal_add(&global_signals, "debug::newindex::miss"); signal_add(&global_signals, "systray::update"); + signal_add(&global_signals, "refresh"); signal_add(&global_signals, "exit"); } @@ -719,4 +720,10 @@ luaA_class_newindex_miss_property(lua_State *L, lua_object_t *obj) return 0; } +void +luaA_emit_refresh() +{ + signal_object_emit(globalconf.L, &global_signals, "refresh", 0); +} + // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80