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:
@ -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.
|
||||
|
Reference in New Issue
Block a user