diff options
Diffstat (limited to 'tigervnc/build/patches/tigervnc13_typecast.patch')
-rw-r--r-- | tigervnc/build/patches/tigervnc13_typecast.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tigervnc/build/patches/tigervnc13_typecast.patch b/tigervnc/build/patches/tigervnc13_typecast.patch new file mode 100644 index 00000000..a25e93c3 --- /dev/null +++ b/tigervnc/build/patches/tigervnc13_typecast.patch @@ -0,0 +1,14 @@ +Do a better type cast that mirrors how we generate +opaqueId in the first place. Patch by Michal Srb. + +--- a/trunk/unix/xserver/hw/vnc/vncExtInit.cc ++++ b/trunk/unix/xserver/hw/vnc/vncExtInit.cc +@@ -1070,7 +1070,7 @@ + { + REQUEST(xVncExtApproveConnectReq); + REQUEST_SIZE_MATCH(xVncExtApproveConnectReq); +- if (queryConnectId == (void*)stuff->opaqueId) { ++ if ((CARD32)(long)queryConnectId == stuff->opaqueId) { + for (int scr = 0; scr < screenInfo.numScreens; scr++) { + if (desktop[scr]) { + desktop[scr]->approveConnection(queryConnectId, stuff->approve, |