render: move frame_callback to term.render

This commit is contained in:
Daniel Eklöf 2019-07-24 20:11:49 +02:00
parent ebf0a11fa0
commit 4838763d18
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 11 additions and 9 deletions

4
main.c
View file

@ -848,8 +848,8 @@ out:
mtx_unlock(&term.kbd.repeat.mutex);
shm_fini();
if (term.frame_callback != NULL)
wl_callback_destroy(term.frame_callback);
if (term.render.frame_callback != NULL)
wl_callback_destroy(term.render.frame_callback);
if (term.wl.xdg_toplevel != NULL)
xdg_toplevel_destroy(term.wl.xdg_toplevel);
if (term.wl.xdg_surface != NULL)