[Spice-devel] [PATCH vd_agent_linux v2 5/7] x11: Add a comment explaining a misleading value

Frediano Ziglio fziglio at redhat.com
Fri Jan 4 08:37:03 UTC 2019


People can think that 32 means 32 bit while is always a long.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 src/vdagent/x11.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vdagent/x11.c b/src/vdagent/x11.c
index c9c2e02..bc37a0e 100644
--- a/src/vdagent/x11.c
+++ b/src/vdagent/x11.c
@@ -727,6 +727,7 @@ static int vdagent_x11_get_selection(struct vdagent_x11 *x11, XEvent *event,
         len *= sizeof(short);
         break;
     case 32:
+        // on X11 a format of 32 is always a long
         len *= sizeof(long);
         break;
     }
-- 
2.20.1



More information about the Spice-devel mailing list