// screen functions
-#if XORG < 112
+#if XORG <= 112
static Bool vncHooksCloseScreen(int i, ScreenPtr pScreen);
#else
static Bool vncHooksCloseScreen(ScreenPtr pScreen);
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
// 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_)
DBGPRINT((stderr,"vncHooksCloseScreen: unwrapped screen functions\n"));
-#if XORG < 112
+#if XORG <= 112
return (*pScreen->CloseScreen)(i, pScreen);
#else
return (*pScreen->CloseScreen)(pScreen);
// 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
pointer pReadmask)
#endif
{
-#if XORG < 112
+#if XORG <= 112
SCREEN_UNWRAP(screenInfo.screens[i], BlockHandler);
#else
SCREEN_UNWRAP(pScreen_, BlockHandler);
vncHooksScreen->desktop->ignoreHooks(true);
-#if XORG < 112
+#if XORG <= 112
(*pScreen->BlockHandler) (i, blockData, pTimeout, pReadmask);
#else
(*pScreen->BlockHandler) (pScreen, pTimeout, pReadmask);