From d0f9fced71861a36f35dff6a5123377fe63c0145 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 15 Feb 2015 12:42:16 +0100 Subject: [PATCH] WIP --- common/luaobject.c | 13 +++++++++++-- lib/gears/timer.lua | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/common/luaobject.c b/common/luaobject.c index 64d8face6..fde8f2637 100644 --- a/common/luaobject.c +++ b/common/luaobject.c @@ -287,14 +287,23 @@ luaA_object_emit_signal(lua_State *L, int oud, int nbfunc = sigfound->sigfuncs.len; luaL_checkstack(L, nbfunc + nargs + 2, "too much signal"); - const char *objname = lua_tostring(L, oud_abs); - debug("Emitting signal '%s' on %s (%d funcs)", name, objname, nbfunc); + /* if( name != "refresh" ) { */ + const char *objname = lua_tostring(L, oud_abs); + debug("Emitting signal '%s' on %s (%d funcs)", name, objname, nbfunc); + luaA_dumpstack(L); + /* } */ /* Push all functions and then execute, because this list can change * while executing funcs. */ foreach(func, sigfound->sigfuncs) luaA_object_push_item(L, oud_abs, *func); + /* lua_pushvalue(L, oud_abs); */ + /* lua_class = luaA_class_get(L, oud_abs); */ + /* luaA_object_tostring_idx(L, oud_abs); */ + /* const char *objname = lua_tostring(L, -1); */ + /* lua_pop(L, 1); */ + for(int i = 0; i < nbfunc; i++) { /* push object */ diff --git a/lib/gears/timer.lua b/lib/gears/timer.lua index da9f4de71..8303d11cb 100644 --- a/lib/gears/timer.lua +++ b/lib/gears/timer.lua @@ -223,6 +223,7 @@ end local delayed_calls = {} capi.awesome.connect_signal("refresh", function() for _, callback in ipairs(delayed_calls) do + print("D: awesome: delayed_call: " .. tostring(callback[1])) protected_call(unpack(callback)) end delayed_calls = {}