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

@ -356,8 +356,6 @@ typedef struct session {
xcb_connection_t *c;
/// Default visual.
xcb_visualid_t vis;
/// Pict formats info
xcb_render_query_pict_formats_reply_t *pictfmts;
/// Default depth.
int depth;
/// Root window.