Accepting request 344063 from X11:XOrg

- u_xserver118.patch
  * Build with xserver 1.18.0.

OBS-URL: https://build.opensuse.org/request/show/344063
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tigervnc?expand=0&rev=28
This commit is contained in:
Dominique Leuenberger 2015-11-17 13:20:52 +00:00 committed by Git OBS Bridge
commit 5b81c0f86d
3 changed files with 43 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 12 12:51:31 UTC 2015 - msrb@suse.com
- u_xserver118.patch
* Build with xserver 1.18.0.
-------------------------------------------------------------------
Thu Oct 1 23:16:52 UTC 2015 - msrb@suse.com

View File

@ -120,6 +120,7 @@ Patch10: u_tigervnc-add-autoaccept-parameter.patch
Patch11: N_tigervnc_revert_fltk_1_3_3_requirements.patch
Patch12: U_tigervnc-fix-reversed-logic-in-vncIsTCPPortUsed.patch
Patch13: u_tigervnc-vncserver-clean-pid-files.patch
Patch14: u_xserver118.patch
%description
TigerVNC is a high-performance, platform-neutral implementation of VNC (Virtual Network Computing),
@ -163,6 +164,7 @@ cp -r /usr/src/xserver/* unix/xserver/
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
pushd unix/xserver
patch -p1 < ../xserver117.patch

35
u_xserver118.patch Normal file
View File

@ -0,0 +1,35 @@
Subject: Support X server 1.18.0
Author: Michal Srb <msrb@suse.com>
Patch-Mainline: To be upstreamed
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
index 4c90a95..55befa7 100644
--- a/unix/xserver/hw/vnc/Input.c
+++ b/unix/xserver/hw/vnc/Input.c
@@ -300,8 +300,10 @@ static inline void pressKey(DeviceIntPtr dev, int kc, Bool down, const char *msg
#if XORG < 111
n = GetKeyboardEvents(eventq, dev, action, kc);
enqueueEvents(dev, n);
-#else
+#elif XORG < 118
QueueKeyboardEvents(dev, action, kc, NULL);
+#else
+ QueueKeyboardEvents(dev, action, kc);
#endif
}