Remove some unused members of session_t

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-07-26 03:39:01 +01:00
parent 357968c815
commit 4772103334
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
2 changed files with 0 additions and 6 deletions

View File

@ -209,8 +209,6 @@ typedef struct session {
bool tmout_unredir_hit;
/// Whether we need to redraw the screen
bool redraw_needed;
/// Program start time.
struct timeval time_start;
/// The region needs to painted on next paint.
region_t *damage;
/// The region damaged on the last paint.
@ -230,8 +228,6 @@ typedef struct session {
ignore_t **ignore_tail;
// Cached blur convolution kernels.
struct x_convolution_kernel **blur_kerns_cache;
/// Reset program after next paint.
bool reset:1;
/// If compton should quit
bool quit:1;
/// Whether there are pending updates, like window creation, etc.

View File

@ -1516,7 +1516,6 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
#ifdef CONFIG_OPENGL
.glx_prog_win = GLX_PROG_MAIN_INIT,
#endif
.time_start = {0, 0},
.redirected = false,
.alpha_picts = NULL,
.fade_time = 0L,
@ -1590,7 +1589,6 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
pixman_region32_init(&ps->screen_reg);
ps->ignore_tail = &ps->ignore_head;
gettimeofday(&ps->time_start, NULL);
ps->o.show_all_xerrors = all_xerrors;