Refactor linked-list operations into a header

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-04-04 09:11:27 +01:00
parent b9f894c4fc
commit 5077d56676
7 changed files with 155 additions and 87 deletions

View File

@ -221,7 +221,7 @@ void glx_destroy(session_t *ps) {
return;
// Free all GLX resources of windows
WIN_STACK_ITER(ps, w) {
list_foreach(win, w, &ps->window_stack, stack_neighbour) {
free_win_res_glx(ps, w);
}