2016-12-05 04:50:25 +01:00
|
|
|
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
|
|
|
|
===================================================================
|
|
|
|
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
|
|
|
|
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
|
2016-12-05 23:43:01 +01:00
|
|
|
@@ -52,6 +52,10 @@
|
2016-12-05 04:50:25 +01:00
|
|
|
#ifndef _VBOXVIDEO_H_
|
|
|
|
#define _VBOXVIDEO_H_
|
|
|
|
|
2016-12-05 23:43:01 +01:00
|
|
|
+#if XORG_VERSION_CURRENT >= 11900000
|
2016-12-05 04:50:25 +01:00
|
|
|
+#include <bits/sigset.h>
|
|
|
|
+typedef __sigset_t sigset_t;
|
2016-12-05 23:43:01 +01:00
|
|
|
+#endif
|
2016-12-05 04:50:25 +01:00
|
|
|
#include <VBox/VBoxVideoGuest.h>
|
|
|
|
#include <VBox/VBoxVideo.h>
|
|
|
|
#include "version-generated.h"
|
|
|
|
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/helpers.c
|
|
|
|
===================================================================
|
|
|
|
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/helpers.c
|
|
|
|
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/helpers.c
|
2016-12-05 23:43:01 +01:00
|
|
|
@@ -82,7 +82,11 @@ void vbvxSetIntegerPropery(ScrnInfoPtr p
|
2016-12-05 04:50:25 +01:00
|
|
|
|
|
|
|
property_name = MakeAtom(pszName, strlen(pszName), TRUE);
|
|
|
|
VBVXASSERT(property_name != BAD_RESOURCE, ("Failed to set atom \"%s\"\n", pszName));
|
2016-12-05 23:43:01 +01:00
|
|
|
+#if XORG_VERSION_CURRENT >= 11900000
|
2016-12-05 04:50:25 +01:00
|
|
|
+ dixChangeWindowProperty(serverClient, ROOT_WINDOW(pScrn), property_name, XA_INTEGER, 32, PropModeReplace, cData, paData, fSendEvent);
|
2016-12-05 23:43:01 +01:00
|
|
|
+#else
|
|
|
|
ChangeWindowProperty(ROOT_WINDOW(pScrn), property_name, XA_INTEGER, 32, PropModeReplace, cData, paData, fSendEvent);
|
|
|
|
+#endif
|
2016-12-05 04:50:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void vbvxReprobeCursor(ScrnInfoPtr pScrn)
|
|
|
|
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
|
|
|
|
===================================================================
|
|
|
|
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
|
|
|
|
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
|
2016-12-05 23:43:01 +01:00
|
|
|
@@ -1229,7 +1229,11 @@ static Bool VBOXScreenInit(ScreenPtr pSc
|
2016-12-05 04:50:25 +01:00
|
|
|
updateGraphicsCapability(pScrn, TRUE);
|
|
|
|
|
|
|
|
/* Register block and wake-up handlers for getting new screen size hints. */
|
2016-12-05 23:43:01 +01:00
|
|
|
+#if XORG_VERSION_CURRENT >= 11900000
|
2016-12-05 04:50:25 +01:00
|
|
|
+ RegisterBlockAndWakeupHandlers(vboxBlockHandler, (ServerWakeupHandlerProcPtr)NoopDDA, (pointer)pScrn);
|
2016-12-05 23:43:01 +01:00
|
|
|
+#else
|
|
|
|
RegisterBlockAndWakeupHandlers(vboxBlockHandler, (WakeupHandlerProcPtr)NoopDDA, (pointer)pScrn);
|
|
|
|
+#endif
|
|
|
|
|
2016-12-05 04:50:25 +01:00
|
|
|
/* software cursor */
|
|
|
|
miDCInitialize(pScreen, xf86GetPointerScreenFuncs());
|
|
|
|
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/pointer.c
|
|
|
|
===================================================================
|
|
|
|
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/pointer.c
|
|
|
|
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/pointer.c
|
2016-12-05 23:43:01 +01:00
|
|
|
@@ -15,6 +15,10 @@
|
2016-12-05 04:50:25 +01:00
|
|
|
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
|
|
|
*/
|
|
|
|
|
2016-12-05 23:43:01 +01:00
|
|
|
+#if XORG_VERSION_CURRENT >= 11900000
|
2016-12-05 04:50:25 +01:00
|
|
|
+#include <bits/sigset.h>
|
|
|
|
+typedef __sigset_t sigset_t;
|
2016-12-05 23:43:01 +01:00
|
|
|
+#endif
|
2016-12-05 04:50:25 +01:00
|
|
|
#include <VBox/VBoxGuestLib.h>
|
|
|
|
|
|
|
|
#ifndef PCIACCESS
|
|
|
|
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/edid.c
|
|
|
|
===================================================================
|
|
|
|
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/edid.c
|
|
|
|
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/edid.c
|
2016-12-05 23:43:01 +01:00
|
|
|
@@ -44,6 +44,10 @@
|
2016-12-05 04:50:25 +01:00
|
|
|
* Dave Airlie <airlied@redhat.com>
|
|
|
|
*/
|
|
|
|
|
2016-12-05 23:43:01 +01:00
|
|
|
+#if XORG_VERSION_CURRENT >= 11900000
|
2016-12-05 04:50:25 +01:00
|
|
|
+#include <bits/sigset.h>
|
|
|
|
+typedef __sigset_t sigset_t;
|
2016-12-05 23:43:01 +01:00
|
|
|
+#endif
|
2016-12-05 04:50:25 +01:00
|
|
|
#include <misc.h>
|
|
|
|
#include <xf86DDC.h>
|
|
|
|
#include <xf86Crtc.h>
|