core: only grab X server when there indeed is new windows

Shouldn't grab X server for nothing.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-04-25 04:14:32 +01:00
parent 46b8eb8d4d
commit cfbd1819ed
3 changed files with 30 additions and 20 deletions

View File

@ -378,9 +378,11 @@ typedef struct session {
// Cached blur convolution kernels.
xcb_render_fixed_t *blur_kerns_cache[MAX_BLUR_PASS];
/// Reset program after next paint.
bool reset;
bool reset:1;
/// If compton should quit
bool quit;
bool quit:1;
/// If new window has been added and not been handled
bool has_new_window:1;
// === Expose event related ===
/// Pointer to an array of <code>XRectangle</code>-s of exposed region.