Fix function pointer casts in client.c
The getters for properties already get the object as their second argument, so there is no need to get the object again from Lua. Fixes: https://github.com/awesomeWM/awesome/issues/2299 Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
94d3918d14
commit
3553838443
|
@ -2549,10 +2549,8 @@ luaA_client_tags(lua_State *L)
|
||||||
/** Get the first tag of a client.
|
/** Get the first tag of a client.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
luaA_client_get_first_tag(lua_State *L)
|
luaA_client_get_first_tag(lua_State *L, client_t *c)
|
||||||
{
|
{
|
||||||
client_t *c = luaA_checkudata(L, 1, &client_class);
|
|
||||||
|
|
||||||
foreach(tag, globalconf.tags)
|
foreach(tag, globalconf.tags)
|
||||||
if(is_client_tagged(c, *tag))
|
if(is_client_tagged(c, *tag))
|
||||||
{
|
{
|
||||||
|
@ -3441,10 +3439,9 @@ luaA_client_keys(lua_State *L)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
luaA_client_get_icon_sizes(lua_State *L)
|
luaA_client_get_icon_sizes(lua_State *L, client_t *c)
|
||||||
{
|
{
|
||||||
int index = 1;
|
int index = 1;
|
||||||
client_t *c = luaA_checkudata(L, 1, &client_class);
|
|
||||||
|
|
||||||
lua_newtable(L);
|
lua_newtable(L);
|
||||||
foreach (s, c->icons) {
|
foreach (s, c->icons) {
|
||||||
|
|
Loading…
Reference in New Issue