From 18062f08d2064828b183ac5c1f5211a3cac588ba Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Fri, 6 Sep 2019 20:17:03 +0000 Subject: [PATCH] Don't send anything to clients that don't have active requests --- src/server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.c b/src/server.c index 90ce7b6..bd208e8 100644 --- a/src/server.c +++ b/src/server.c @@ -790,6 +790,9 @@ int nvnc_update_fb(struct nvnc *self, const struct nvnc_fb *fb, pixman_region_intersect(cregion, cregion, ®ion); + if (!pixman_region_not_empty(cregion)) + continue; + zrle_encode_frame(&client->z_stream, &frame, &client->pixfmt, fb->addr, &server_fmt, fb->width, fb->height, ®ion);