Blame SOURCES/tigervnc-support-xorg120.patch

c7bdbd
diff -up tigervnc-1.8.0/unix/xserver/hw/vnc/xorg-version.h.jx tigervnc-1.8.0/unix/xserver/hw/vnc/xorg-version.h
c7bdbd
--- tigervnc-1.8.0/unix/xserver/hw/vnc/xorg-version.h.jx	2017-05-16 09:53:28.000000000 -0400
c7bdbd
+++ tigervnc-1.8.0/unix/xserver/hw/vnc/xorg-version.h	2018-06-06 15:42:07.388157181 -0400
c7bdbd
@@ -52,8 +52,10 @@
c7bdbd
 #define XORG 118
c7bdbd
 #elif XORG_VERSION_CURRENT < ((1 * 10000000) + (19 * 100000) + (99 * 1000))
c7bdbd
 #define XORG 119
c7bdbd
+#elif XORG_VERSION_CURRENT < ((1 * 10000000) + (20 * 100000) + (99 * 1000))
c7bdbd
+#define XORG 120
c7bdbd
 #else
c7bdbd
-#error "X.Org newer than 1.19 is not supported"
c7bdbd
+#error "X.Org newer than 1.20 is not supported"
c7bdbd
 #endif
c7bdbd
c7bdbd
 #endif
c7bdbd
diff -up tigervnc-1.8.0/unix/xserver/hw/vnc/xvnc.c.jx tigervnc-1.8.0/unix/xserver/hw/vnc/xvnc.c
c7bdbd
--- tigervnc-1.8.0/unix/xserver/hw/vnc/xvnc.c.jx	2017-05-16 09:53:28.000000000 -0400
c7bdbd
+++ tigervnc-1.8.0/unix/xserver/hw/vnc/xvnc.c	2018-06-06 15:42:58.384936550 -0400
c7bdbd
@@ -46,6 +46,7 @@ from the X Consortium.
c7bdbd
 #include <X11/Xproto.h>
c7bdbd
 #include <X11/Xos.h>
c7bdbd
 #include "scrnintstr.h"
c7bdbd
+#include "glx_extinit.h"
c7bdbd
 #include "servermd.h"
c7bdbd
 #include "fb.h"
c7bdbd
 #include "mi.h"
c7bdbd
@@ -202,6 +202,7 @@ vfbBitsPerPixel(int depth)
c7bdbd
c7bdbd
 static void vfbFreeFramebufferMemory(vfbFramebufferInfoPtr pfb);
c7bdbd
c7bdbd
+#if XORG < 120
c7bdbd
 #ifdef DPMSExtension
c7bdbd
     /* Why support DPMS? Because stupid modern desktop environments
c7bdbd
        such as Unity 2D on Ubuntu 11.10 crashes if DPMS is not
c7bdbd
@@ -219,6 +220,7 @@ Bool DPMSSupported(void)
c7bdbd
     return FALSE;
c7bdbd
 }
c7bdbd
 #endif
c7bdbd
+#endif
c7bdbd
c7bdbd
 #if XORG < 111
c7bdbd
 void ddxGiveUp()
c7bdbd
@@ -1491,6 +1493,12 @@ vfbCloseScreen(ScreenPtr pScreen)
c7bdbd
 #endif
c7bdbd
 }
c7bdbd
c7bdbd
+#if XORG >= 120
c7bdbd
+static void vncDPMS(ScreenPtr pScreen, int level)
c7bdbd
+{
c7bdbd
+}
c7bdbd
+#endif
c7bdbd
+
c7bdbd
 static Bool
c7bdbd
 #if XORG < 113
c7bdbd
 vfbScreenInit(int index, ScreenPtr pScreen, int argc, char **argv)
c7bdbd
@@ -1661,6 +1669,9 @@ vfbScreenInit(ScreenPtr pScreen, int arg
c7bdbd
     if (!ret) return FALSE;
c7bdbd
 #endif
c7bdbd
c7bdbd
+#if XORG >= 120
c7bdbd
+    pScreen->DPMS = vncDPMS;
c7bdbd
+#endif
c7bdbd
c7bdbd
   return TRUE;
c7bdbd
c7bdbd
@@ -1696,7 +1707,9 @@ InitOutput(ScreenInfo *scrInfo, int argc
c7bdbd
c7bdbd
     vncPrintBanner();
c7bdbd
c7bdbd
-#if XORG >= 113
c7bdbd
+#if XORG >= 120
c7bdbd
+    xorgGlxCreateVendor();
c7bdbd
+#elif XORG >= 113
c7bdbd
 #ifdef GLXEXT
c7bdbd
     if (serverGeneration == 1)
c7bdbd
 #if XORG >= 116