doc: fix wallpaper_changed signal, SETUP_SIGNAL comment (#2141)

This commit is contained in:
Daniel Hahler 2017-12-20 01:26:06 +01:00 committed by GitHub
parent 31b8623ff6
commit cc68ac9292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 12 deletions

24
luaa.c
View File

@ -118,10 +118,10 @@ extern const struct luaL_Reg awesome_mouse_meta[];
* @signal systray::update
*/
/** The wallpaper has just been changed. This signal is used for
/** The wallpaper has changed.
*
* pseudo-transparency in `wibox.drawable` if no composite manager is
* running.
* This signal is used for pseudo-transparency in `wibox.drawable` if no
* composite manager is running.
* @signal wallpaper_changed
*/
@ -621,15 +621,15 @@ setup_awesome_signals(lua_State *L)
lua_pushstring(L, "unix_signal");
lua_newtable(L);
#define SETUP_SIGNAL(sig) \
do { \
/* Set awesome.signals["SIGSTOP"] = 42 */ \
lua_pushinteger(L, sig); \
lua_setfield(L, -2, #sig); \
/* Set awesome.signals[42] = "SIGSTOP" */ \
lua_pushinteger(L, sig); \
lua_pushstring(L, #sig); \
lua_settable(L, -3); \
#define SETUP_SIGNAL(sig) \
do { \
/* Set awesome.unix_signal["SIGSTOP"] = 42 */ \
lua_pushinteger(L, sig); \
lua_setfield(L, -2, #sig); \
/* Set awesome.unix_signal[42] = "SIGSTOP" */ \
lua_pushinteger(L, sig); \
lua_pushstring(L, #sig); \
lua_settable(L, -3); \
} while (0)
/* Non-standard signals. These are first so that e.g. (on my system)