summarylogtreecommitdiffstats
path: root/xorg118.patch
diff options
context:
space:
mode:
Diffstat (limited to 'xorg118.patch')
-rw-r--r--xorg118.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/xorg118.patch b/xorg118.patch
new file mode 100644
index 000000000000..c472139c77f1
--- /dev/null
+++ b/xorg118.patch
@@ -0,0 +1,29 @@
+diff --git a/unix/xserver/hw/vnc/Input.c b/unix/xserver/hw/vnc/Input.c
+index 4c90a95..a92188d 100644
+--- a/unix/xserver/hw/vnc/Input.c
++++ b/unix/xserver/hw/vnc/Input.c
+@@ -301,7 +301,7 @@ static inline void pressKey(DeviceIntPtr dev, int kc, Bool down, const char *msg
+ n = GetKeyboardEvents(eventq, dev, action, kc);
+ enqueueEvents(dev, n);
+ #else
+- QueueKeyboardEvents(dev, action, kc, NULL);
++ QueueKeyboardEvents(dev, action, kc);
+ #endif
+ }
+
+diff --git a/unix/xserver/hw/vnc/xorg-version.h b/unix/xserver/hw/vnc/xorg-version.h
+index 8cc1c86..60610cb 100644
+--- a/unix/xserver/hw/vnc/xorg-version.h
++++ b/unix/xserver/hw/vnc/xorg-version.h
+@@ -48,8 +48,10 @@
+ #define XORG 116
+ #elif XORG_VERSION_CURRENT < ((1 * 10000000) + (17 * 100000) + (99 * 1000))
+ #define XORG 117
++#elif XORG_VERSION_CURRENT < ((1 * 10000000) + (18 * 100000) + (99 * 1000))
++#define XORG 118
+ #else
+-#error "X.Org newer than 1.17 is not supported"
++#error "X.Org newer than 1.18 is not supported"
+ #endif
+
+ #endif