Don't send anything to clients that don't have active requests

tight-png
Andri Yngvason 2019-09-06 20:17:03 +00:00 committed by Andri Yngvason
parent b10c6c2a5a
commit 18062f08d2
1 changed files with 3 additions and 0 deletions

View File

@ -790,6 +790,9 @@ int nvnc_update_fb(struct nvnc *self, const struct nvnc_fb *fb,
pixman_region_intersect(cregion, cregion, &region); pixman_region_intersect(cregion, cregion, &region);
if (!pixman_region_not_empty(cregion))
continue;
zrle_encode_frame(&client->z_stream, &frame, &client->pixfmt, zrle_encode_frame(&client->z_stream, &frame, &client->pixfmt,
fb->addr, &server_fmt, fb->width, fb->height, fb->addr, &server_fmt, fb->width, fb->height,
&region); &region);