From 733913354256f67a1f6caef1e463ce62aaea473b Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 6 Jul 2020 16:53:51 -0700 Subject: getzpixmap: remove pointless _XReadPad() No idea why rmdGetZPixmapSHM() is doing this, the whole point of shmem is to not have to read the data over the wire. You request the server to do the copy into the shared memory and that's all there is to it. This program is so confused --- recordmydesktop/src/rmd_getzpixmap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/recordmydesktop/src/rmd_getzpixmap.c b/recordmydesktop/src/rmd_getzpixmap.c index 27a41d2..43465c8 100644 --- a/recordmydesktop/src/rmd_getzpixmap.c +++ b/recordmydesktop/src/rmd_getzpixmap.c @@ -86,7 +86,6 @@ int rmdGetZPixmapSHM( Display *dpy, xShmGetImageReply reply; xShmGetImageReq *request = NULL; - long nbytes; LockDisplay(dpy); GetReq(ShmGetImage, request); @@ -111,8 +110,6 @@ int rmdGetZPixmapSHM( Display *dpy, return 1; } - nbytes = (long)reply.length << 2; - _XReadPad(dpy, data, nbytes); UnlockDisplay(dpy); SyncHandle(); -- cgit v1.2.3