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);