diff --git a/client.c b/client.c index 94b4c536..917b1013 100644 --- a/client.c +++ b/client.c @@ -1958,7 +1958,7 @@ luaA_client_index(lua_State *L) lua_pushnumber(L, c->border); break; case A_TK_BORDER_COLOR: - luaA_pushcolor(L, &c->border_color); + luaA_pushxcolor(L, &c->border_color); break; case A_TK_TITLEBAR: return wibox_push(L, c->titlebar); diff --git a/luaa.c b/luaa.c index 90ddddbe..552df124 100644 --- a/luaa.c +++ b/luaa.c @@ -585,10 +585,10 @@ luaA_awesome_index(lua_State *L) lua_pushstring(L, globalconf.conffile); break; case A_TK_FG: - luaA_pushcolor(L, &globalconf.colors.fg); + luaA_pushxcolor(L, &globalconf.colors.fg); break; case A_TK_BG: - luaA_pushcolor(L, &globalconf.colors.bg); + luaA_pushxcolor(L, &globalconf.colors.bg); break; default: return 0; @@ -831,7 +831,7 @@ luaA_on_timer(EV_P_ ev_timer *w, int revents) * \return The number of elements pushed on stack. */ int -luaA_pushcolor(lua_State *L, const xcolor_t *c) +luaA_pushxcolor(lua_State *L, const xcolor_t *c) { uint8_t r = (unsigned)c->red * 0xff / 0xffff; uint8_t g = (unsigned)c->green * 0xff / 0xffff; diff --git a/luaa.h b/luaa.h index 2c2ab6a9..8f77bb9d 100644 --- a/luaa.h +++ b/luaa.h @@ -331,7 +331,7 @@ luaA_pushpadding(lua_State *L, padding_t *padding) void luaA_init(xdgHandle); bool luaA_parserc(xdgHandle, const char *, bool); void luaA_on_timer(EV_P_ ev_timer *, int); -int luaA_pushcolor(lua_State *, const xcolor_t *); +int luaA_pushxcolor(lua_State *, const xcolor_t *); bool luaA_hasitem(lua_State *, const void *); void luaA_table2wtable(lua_State *); int luaA_next(lua_State *, int); diff --git a/wibox.c b/wibox.c index bd6e9835..0d602175 100644 --- a/wibox.c +++ b/wibox.c @@ -875,16 +875,16 @@ luaA_wibox_index(lua_State *L) lua_pushnumber(L, wibox->sw.border.width); break; case A_TK_BORDER_COLOR: - luaA_pushcolor(L, &wibox->sw.border.color); + luaA_pushxcolor(L, &wibox->sw.border.color); break; case A_TK_ALIGN: lua_pushstring(L, draw_align_tostr(wibox->align)); break; case A_TK_FG: - luaA_pushcolor(L, &wibox->sw.ctx.fg); + luaA_pushxcolor(L, &wibox->sw.ctx.fg); break; case A_TK_BG: - luaA_pushcolor(L, &wibox->sw.ctx.bg); + luaA_pushxcolor(L, &wibox->sw.ctx.bg); break; case A_TK_BG_IMAGE: image_push(L, wibox->bg_image); diff --git a/widgets/graph.c b/widgets/graph.c index 5067ab17..e68562f8 100644 --- a/widgets/graph.c +++ b/widgets/graph.c @@ -466,10 +466,10 @@ luaA_graph_index(lua_State *L, awesome_token_t token) lua_pushnumber(L, d->width); break; case A_TK_BORDER_COLOR: - luaA_pushcolor(L, &d->border_color); + luaA_pushxcolor(L, &d->border_color); break; case A_TK_BG: - luaA_pushcolor(L, &d->bg); + luaA_pushxcolor(L, &d->bg); break; case A_TK_GROW: switch(d->grow) diff --git a/widgets/imagebox.c b/widgets/imagebox.c index 8763f46b..dc14274a 100644 --- a/widgets/imagebox.c +++ b/widgets/imagebox.c @@ -143,7 +143,7 @@ luaA_imagebox_index(lua_State *L, awesome_token_t token) image_push(L, d->image); break; case A_TK_BG: - luaA_pushcolor(L, &d->bg); + luaA_pushxcolor(L, &d->bg); break; case A_TK_RESIZE: lua_pushboolean(L, d->resize); diff --git a/widgets/textbox.c b/widgets/textbox.c index eadc25e6..35174fc2 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -190,7 +190,7 @@ luaA_textbox_index(lua_State *L, awesome_token_t token) case A_TK_BG_IMAGE: return image_push(L, d->bg_image); case A_TK_BG: - return luaA_pushcolor(L, &d->bg); + return luaA_pushxcolor(L, &d->bg); case A_TK_MARGIN: lua_pushcfunction(L, luaA_textbox_margin); return 1; @@ -201,7 +201,7 @@ luaA_textbox_index(lua_State *L, awesome_token_t token) lua_pushnumber(L, d->border.width); return 1; case A_TK_BORDER_COLOR: - luaA_pushcolor(L, &d->border.color); + luaA_pushxcolor(L, &d->border.color); return 1; case A_TK_TEXT: if(d->data.len > 0)