Move session_t::pictfmts into x.c

As a global variable, since they shouldn't change during the period
compton is running. Also limit the scope of the variable to x.c.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-02-03 15:14:14 +00:00
parent 0be3fb5ea2
commit ad3dc5d233
3 changed files with 15 additions and 16 deletions

View File

@ -3161,7 +3161,6 @@ session_destroy(session_t *ps) {
}
free(ps->o.glx_fshader_win_str);
free_xinerama_info(ps);
free(ps->pictfmts);
deinit_render(ps);