From 291b89b6417e0ad843bfed5fff8e995f36e0cc39 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Apr 04 2018 17:53:35 +0000 Subject: Proper support for Xorg 1.20 --- diff --git a/tigervnc-support-xorg120.patch b/tigervnc-support-xorg120.patch index 1f1c5b6..dcb50db 100644 --- a/tigervnc-support-xorg120.patch +++ b/tigervnc-support-xorg120.patch @@ -34,3 +34,25 @@ index 93d8af4..1517809 100644 #if XORG < 111 void ddxGiveUp() +@@ -1491,6 +1491,12 @@ vfbCloseScreen(ScreenPtr pScreen) + #endif + } + ++#if XORG >= 120 ++static void vncDPMS(ScreenPtr pScreen, int level) ++{ ++} ++#endif ++ + static Bool + #if XORG < 113 + vfbScreenInit(int index, ScreenPtr pScreen, int argc, char **argv) +@@ -1661,6 +1667,9 @@ vfbScreenInit(ScreenPtr pScreen, int arg + if (!ret) return FALSE; + #endif + ++#if XORG >= 120 ++ pScreen->DPMS = vncDPMS; ++#endif + + return TRUE;