diff options
author | Eric Hameleers <alien@slackware.com> | 2013-12-06 14:11:51 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-12-06 14:11:51 +0000 |
commit | 0ad0bc7c49092f8a53e4e3e484d8c74bf0bbd05c (patch) | |
tree | ea0265dbb38d6737540bda4076d54f0527b2ea87 /tigervnc/build/patches/tigervnc13_screenindex.patch | |
parent | 2c7dd5ea84956a370370b75f26d8c6bae418c50c (diff) | |
download | asb-0ad0bc7c49092f8a53e4e3e484d8c74bf0bbd05c.tar.gz asb-0ad0bc7c49092f8a53e4e3e484d8c74bf0bbd05c.tar.xz |
Initial revision
Diffstat (limited to 'tigervnc/build/patches/tigervnc13_screenindex.patch')
-rw-r--r-- | tigervnc/build/patches/tigervnc13_screenindex.patch | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/tigervnc/build/patches/tigervnc13_screenindex.patch b/tigervnc/build/patches/tigervnc13_screenindex.patch new file mode 100644 index 00000000..1d677ead --- /dev/null +++ b/tigervnc/build/patches/tigervnc13_screenindex.patch @@ -0,0 +1,68 @@ +The screen index was removed in 1.13, not 1.12. +Bug found and patched by Koichiro IWAO. + +--- a/trunk/unix/xserver/hw/vnc/vncHooks.cc ++++ b/trunk/unix/xserver/hw/vnc/vncHooks.cc +@@ -119,7 +119,7 @@ + + // screen functions + +-#if XORG < 112 ++#if XORG <= 112 + static Bool vncHooksCloseScreen(int i, ScreenPtr pScreen); + #else + static Bool vncHooksCloseScreen(ScreenPtr pScreen); +@@ -140,7 +140,7 @@ + DeviceIntPtr pDev, + #endif + ScreenPtr pScreen, CursorPtr cursor); +-#if XORG < 112 ++#if XORG <= 112 + static void vncHooksBlockHandler(int i, pointer blockData, pointer pTimeout, + pointer pReadmask); + #else +@@ -367,7 +367,7 @@ + // CloseScreen - unwrap the screen functions and call the original CloseScreen + // function + +-#if XORG < 112 ++#if XORG <= 112 + static Bool vncHooksCloseScreen(int i, ScreenPtr pScreen_) + #else + static Bool vncHooksCloseScreen(ScreenPtr pScreen_) +@@ -405,7 +405,7 @@ + + DBGPRINT((stderr,"vncHooksCloseScreen: unwrapped screen functions\n")); + +-#if XORG < 112 ++#if XORG <= 112 + return (*pScreen->CloseScreen)(i, pScreen); + #else + return (*pScreen->CloseScreen)(pScreen); +@@ -574,7 +574,7 @@ + // BlockHandler - ignore any changes during the block handler - it's likely + // these are just drawing the cursor. + +-#if XORG < 112 ++#if XORG <= 112 + static void vncHooksBlockHandler(int i, pointer blockData, pointer pTimeout, + pointer pReadmask) + #else +@@ -582,7 +582,7 @@ + pointer pReadmask) + #endif + { +-#if XORG < 112 ++#if XORG <= 112 + SCREEN_UNWRAP(screenInfo.screens[i], BlockHandler); + #else + SCREEN_UNWRAP(pScreen_, BlockHandler); +@@ -590,7 +590,7 @@ + + vncHooksScreen->desktop->ignoreHooks(true); + +-#if XORG < 112 ++#if XORG <= 112 + (*pScreen->BlockHandler) (i, blockData, pTimeout, pReadmask); + #else + (*pScreen->BlockHandler) (pScreen, pTimeout, pReadmask); |