Fix an unbalanced lua stack operation
ewmh_process_state_atom() does a luaA_object_push() at its beginning, but it doesn't pop that object again. Fix this by, well, popping the object at the end of the function again. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
e6a2bf7220
commit
da2a7aec0d
2
ewmh.c
2
ewmh.c
|
@ -391,6 +391,8 @@ ewmh_process_state_atom(client_t *c, xcb_atom_t state, int set)
|
||||||
else if(set == _NET_WM_STATE_TOGGLE)
|
else if(set == _NET_WM_STATE_TOGGLE)
|
||||||
client_set_urgent(globalconf.L, -1, !c->urgent);
|
client_set_urgent(globalconf.L, -1, !c->urgent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lua_pop(globalconf.L, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue